JMenu
s cannot be added to more than one frame. Since on MacOS there's one global menu for all the application windows we need to 'duplicate' a menu prototype. Synchronizing all menus is accomplished by using the same action objects for all menu copies. However when items are added or removed, synchronization needs to be performed manually. That's the point about this class. JInternalFrames
have been removed because they don't offer a constistent look-and-feel on MacOS and besides the main window would have to occupy most of the visible screen. Unfortunately this means we cannot use 'floating' palettes any more.
There can be only one instance of MenuFactory
for the application, and that will be created by the Main
class.
@author Hanns Holger Rutz
@version 0.74, 31-May-05
@see de.sciss.meloncillo.Main#menuFactory
@todo on operating systems that do not have aglobal screen menu bar but attach a menubar directly to a windows frame — this happens on Linux and Windows — not every frame should display the global menu. Small windows such as the palettes should go without a menubar but nevertheless a way of responding to accelerator keys should be found.
@todo see actionNewReceiversClass.actionPerformed.
@todo some menu accelerators do not work on german keyboard.it's impossible(?) to assign meta+questionmark to the help index item for example.
|
|