aspose file tools*
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
Author

jframe to import multiple jpanel

joe garcia
Greenhorn

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 ImagePanel.java 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 ?

thanks
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2091
    
    7
Cross posted: http://stackoverflow.com/questions/2633582/adding-jpanel-into-a-jframe-netbeans

Be Forthright When Cross Posting To Other Sites
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jframe to import multiple jpanel
 
Similar Threads
networked form
NX:JTextField squeeze into funny size -- help!!
Questin on listeners
a little sound
A Question about GUI Design