JRuby with Swing: "The OSX menu"
I am using JRuby with the Swing library to create an OSX application. I would like to know if(and especially how) I can interact (add menu items etc) Application Menu in OSX.
Here is a screenshot. The menu I am talking about is the equivalent of where it says "Firefox" in the screenshot. Have I made myse开发者_C百科lf totally clear on what I mean? :)
Regards, Mattias
The easiest way is to pass the option on the command line:
java -Xdock:name=Firefox
Addendum: It looks like you can use jruby -J
to pass the option through, although I haven't tried it.
精彩评论