wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Jtabbed pane hiding a tab...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jtabbed pane hiding a tab...?" Watch "Jtabbed pane hiding a tab...?" New topic
Author

Jtabbed pane hiding a tab...?

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
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.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

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?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
 
subject: Jtabbed pane hiding a tab...?
 
Similar Threads
Setting selected node of a rich:tree dynamically
TabbedPanere opening major problem
Adding button to a tabbed pane
Best strategy for handling actions across multiple windows?
Contents displayed in second tab instead of First tab