As you know, in the Mac applications are exepcted to have their name
and their menus in the menu bar, at the top of the screen.
Java applications launched as usual do not behave like this (screenshot)
See the odd class name on the top in particular.
Unless I've missed something you cannot fix it calling jython, because
you need to pass a couple of things to the java interpreter:
1. With -Xdock:name=Simma you change the class name with "Simma", the
name of the program in this case. (Some other -X exist for the Mac).
2. With -Dapple.laf.useScreenMenuBar=true you get the menu moved to the
Mac menu bar.
The result is this good Mac citizen (screenshot):
I needed to edit the jython sh launcher that calls java to get that
1. jython does not offer a mechanism to pass any -X to java AFAICT.
2. The property -Dapple.laf.useScreenMenuBar=true does not have effect
if it is passed to the jython main class.
Could the sh script be written such that it passed JVM parameters to
java directly interpolating them in the very call, rather that having
jython deal with them? That way in Mac OS X you could write a wrapper
of jython that passed it, rather than modifying the generated sh. Among
other applications of this approach.
I am way more fluent in Perl than in sh, but i could volunter for this
if you think it is a good idea.
Get latest updates about Open Source Projects, Conferences and News.