This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes jframe to import multiple jpanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jframe to import multiple jpanel" Watch "jframe to import multiple jpanel" New topic

jframe to import multiple jpanel

joe garcia

Joined: Mar 01, 2010
Posts: 9
0 vote down star

i am particularly using netbeans gui editor and i am new to gui

i have a jframe created and I added jtabbedpanel.

inside the jtabbedpanel i have 2 panels that i call standard and compact

i have set standardPanel = new ImagePanel(); which is located on different java file

how am I suppose to put a panel on different file for reusability ?

i obviously dont want all the codes in a single file.

is this the right way to design a gui ?

Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2385
Cross posted:

Be Forthright When Cross Posting To Other Sites
I agree. Here's the link:
subject: jframe to import multiple jpanel
jQuery in Action, 3rd edition