开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜