File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 2452
Cross posted:

Be Forthright When Cross Posting To Other Sites
I agree. Here's the link:
subject: jframe to import multiple jpanel
It's not a secret anymore!