I made a copy of Main.java as ArmedBearJ.java-OS X
displays the name of the main class as the application
name. That was OK, an means that J isn't called Main on
the task bar.
Trying to get it pretty and mac like, I then set the
system property that moves the swing menu of a window
to the right place (the top of the screen) but
(presumably because the menus are dynamically
generated) the actual popup menus are still under the
main window, and only accessible via the Alt key (which
isn't used for menus on OS X, but to type alternative
chĺraçtřrß).
On the assumption that, since OS X isn't on the list of
platforms supported, you won't be able to look at this,
I've mailed a summary of this to the apple-java-dev
forum to see if there is a way of doing dynamic menus
on OS X that fit with the menu at top.
Logged In: NO
I have dynamic menus working - simply rebuilding the menu
under Apple's 1.4.2 java update now has the desired effect:
Frame.java:
public void setMenu()
{
final Mode mode = currentEditor.getMode();
final MenuBar oldMenuBar = (MenuBar) getJMenuBar();
if (oldMenuBar == null ||
Platform.isPlatformOS_X() ||
oldMenuBar.getMenuName() != mode.getMenuName()) {
setJMenuBar(mode.createMenuBar(this));
validate();
}
}