adding jpanel into a jframe. netbeans

Posted by stdnoit on Stack Overflow See other posts from Stack Overflow or by stdnoit
Published on 2010-04-13T22:12:51Z Indexed on 2010/04/13 23:03 UTC
Read the original article Hit count: 346

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about swing