PDA

View Full Version : Can we load menu items dynamically or disable menu item



vamshigurudu
25 Apr 2011, 10:52 PM
Hi,

I have a toolbar with menu and i have tabs.
Below that i am using view port panels.
Is there any way to disable the menu item when clicking on the panel close.
Or load dynamically menu items.

I am loading the viewport panels when clicking on the menu items,
when i click on tyhe menu item i am loading the panel in viewport and disabling that menu item, Now i want to enable the menu item when closing the viewport panel.

Thanks.

friend
26 Apr 2011, 9:00 AM
You can call someMenuItem.setDisabled(true/false), yes?