File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jframe to import multiple jpanel

joe garcia
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic