File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh with fresh components in a JFrame at Runtime

 
ritesh r
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All:
I want a immediate solution to a problem .
I am unable to hide or remove the componets.
Let me elaborate:
I have a menubar with Add Issue & view Issue as SubItems with ItemListeners enabled.
Now I am facing a problem.Both these Menuitems are different methods developed by me to handle the laying of these components.
Whenever I click the Add Issue,the addDisplay() method is fired and the components laid out.
Now when I click the View Issue,the ViewDisplay() method is fired,but the components are overlapped.
Help me.Does swing support a functionality where the components are hidden and enabled when clickedd.
Regards
Ritesh
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try
myComponent.setVisible(boolean)??
This hides and shows the component without actually disposing of it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic