File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JPopMenu and TabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPopMenu and TabbedPane" Watch "JPopMenu and TabbedPane" New topic

JPopMenu and TabbedPane

vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
Hello All,
I have unique problem..

I have Dialog Box, with a tabbed Pane containing
two tabs say A and B.
B had a table with one of its column when
clicked pop's a PopupMenu.
Now my problem,
When this menu is popped, i able change the tab
to A.
i.e I pop the menu, since i have not selected any value in the menu, it is displayed.
now mouse is clicked on the other tab, the pop menu is there and A's Tab Content is displayed.
What i want is !!
when other tab is clicked i want the popup menu to disappear.
any clue on how to achieve this...
One more doubt:-
can i add menu object [with menuitems in the menu object] to JComboBox.
If yes, please give the clue to do this.
thanks in advance
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Could you please post some code... the JPopupMenu works correctly in the test code that I made...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
i am working on this..
will o/p the code ..
in a day or two
Thanks for the help
I agree. Here's the link:
subject: JPopMenu and TabbedPane
It's not a secret anymore!