wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPopMenu and TabbedPane" Watch "JPopMenu and TabbedPane" New topic
Author

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
vinaya
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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



-Nate


-Nate
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
vinaya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPopMenu and TabbedPane