Bookmark Topic Watch Topic
  • New Topic

how to reuse static jpanel  RSS feed

 
andy keidel
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I have a bunch of panels, and they all share a common subpanel. To do the subpanel, I made it a static JPanel. But when I create multiple objects that share this subpanel, only the *most recently created* object shows the subpanel. In the other objects (which are also JPanels), the subpanel becomes invisible. How can I fix this. I'd prefer to have only one subpanel, instead of one per.
Thanks,
Andy
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
hey Andy -- welcome to the JavaRanch! I'm going to move this to our Swing Forum, I think you'll get some more insight there.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
looks like you posted a duplicate post in the Swing forum already. Please don't do that -- it makes the conversation difficult to follow and wastes people's time.
I'm closing this thread, please continue in the original thread
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!