• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jtabbed pane hiding a tab...?

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Members,

I have a tabbed pane, and in that i have 5 tabs, within each tab is a text area, and i have to check the text of the tab and if 'getText()' of tab value is 'null' or 'empty', i have to hide the tab, else i have to display the tab.

For this I have a jtree and on selecting a tree node i will be triggering the values for the tabs, while selecting one node some of the tabs may not have the value and that time it should hide the particular tab and on selecting another tree node it may have the value, that time i have to display the tab.

Please help me in this...

Looking forward for your reply.....


Regards,
Prabhu.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by prabhu rangan:
Dear Members,

I have a tabbed pane, and in that i have 5 tabs, within each tab is a text area, and i have to check the text of the tab and if 'getText()' of tab value is 'null' or 'empty', i have to hide the tab, else i have to display the tab.

For this I have a jtree and on selecting a tree node i will be triggering the values for the tabs, while selecting one node some of the tabs may not have the value and that time it should hide the particular tab and on selecting another tree node it may have the value, that time i have to display the tab.

Please help me in this...

Looking forward for your reply.....


Regards,
Prabhu.



Have you looked at the JTabbedPane API? Did you find anything which would help you "add" or "remove" tabs?
 
reply
    Bookmark Topic Watch Topic
  • New Topic