A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
How do I add JPanel to an existing JPanel?
Barry Brashear
Ranch Hand
Joined: Jun 05, 2001
Posts: 303
posted
Sep 08, 2004 07:12:00
0
I have a class that is a
JPanel
. I'd like to add a smaller beveled border
JPamel within that. How do I do that?
Thanks
Rachel Swailes
Ranch Hand
Joined: May 18, 2004
Posts: 434
posted
Sep 08, 2004 07:54:00
0
The same as you would add any component to your
JPanel
.
JPanel
panel1 = new
JPanel
();
JPanel
panel2 = new
JPanel
();
...
panel1.add(panel2);
Cheers,
Rachel
Pat Hays
Ranch Hand
Joined: Aug 20, 2004
Posts: 138
posted
Sep 08, 2004 12:35:00
0
Try JFrameBuilder
Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
I agree. Here's the link:
http://aspose.com/file-tools
subject: How do I add JPanel to an existing JPanel?
Similar Threads
Image
Adding padding to GUI components
Add a component on the Border of JPanel?
setting background image in applet
Adding JMenus to EditPanes
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter