Setting JTab invisble

Setting JTab invisble

Post by Ike » Fri, 22 Aug 2003 01:31:31


If I have a JTabbedPane....how can I make a tab be visible or not at
runtime? I see I can enable it or not...but is there way or workaround to
make it visible or not?

Thanks, Ike
 
 
 

Setting JTab invisble

Post by wjdenni » Sat, 23 Aug 2003 07:39:40

Is there a reason that you can't call the removeTabAt(int tabNumber)
method? You can always add the component back at that tab position
later if you need to.

Bill Dennis

 
 
 

Setting JTab invisble

Post by Ron Somerv » Sat, 23 Aug 2003 10:21:37

Have you tried setVisible(false)?


On 8/22/03 7:39 AM, in article
XXXX@XXXXX.COM , "Bill Dennis"