Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTabbedPane - Hiding a tab... JBuilder

 
Peter Ussery
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JBuilder I have created a JTabbedPane with several individual Panels on it�
It works great. However; I need to make some of the windows invisible under certain conditions.
I have tried the following, which does not work
If(�)
Panel.setVisible(false);
I can use the same command to make items on the panels disappear like button.setVisible(false);
I need to make specific panels (and tabs) go away�. And be able to bring them back later�.
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JTabbedPane has methods named addTab, insertTab, and removeTab that you can use to do that.
 
Peter Ussery
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks works great; your awesome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!