• Post Reply Bookmark Topic Watch Topic
  • New Topic

Building a GUI  RSS feed

 
Ian Cockcroft
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am quiet new to swing and GUI development. I need to design a GUI with 4 buttons down the right side and a text area on the left, a label above the text area, and another at the top. I have some code, but it doesnt look like i'm getting it right.
Should i be using JPanle, JPane, JInternalFrame, JDesktopPane? Or what? And how do they fit into each other.
Also, when i run it, i want to be able to set the windows(JFrame) width and heighht and position.
Any help would be great, thanks.
The code:
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you're only adding one button to your panel.
I think approach is fine. What I would do is create another panel to hold you buttons. Something like
Does that help ?
[ June 03, 2003: Message edited by: Don Kiddick ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!