dcsimg
Is it possible to change JMenuBar objects of a JFrame
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Robert_Roy
Posted On:   Tuesday, April 10, 2001 11:07 AM

I'm developing an app that I'd like to change the JMenuBar with a new one whenever a user clicks on an entry in a JTree (sort of like context sensitive main menus). I've tried to just use setJMenuBar passing in a new JMenuBar but all I see is part of a control and clipped text from a JPanel that's displayed in the right pane of a splitter (the tree is in the left pane). Should this work or is it best to just replace all the JMenu's and their JMenuItem's?

Thanks,
Rob

Re: Is it possible to change JMenuBar objects of a JFrame

Posted By:   Sandip_Chitale  
Posted On:   Wednesday, April 11, 2001 11:50 PM

Call repaint() on the JFrame.getRootPane().
About | Sitemap | Contact