You'll be able to access those methods if you have declared the variable to be of your "MenuBar" type. If you're using a JMenuBar reference, those won't be visible.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Well, that really depends on how you decide to provide that access. Your menu bar can disable items by using their setEnabled() method if that's what you're wanting to do. The only way to actually remove an item is to remove it from its parent menu, but if your classes are removing a lot of menu items you really need to stop and ask yourself why you're trying to share one menu bar and hack it up as needed. Perhaps each screen or state of your application may need its own menu.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847