On Mar 9, 2:57 pm, WoodHacker <[email protected]> wrote:
> Hi All,
>
> Can anyone explain how I can get a traditional Mac OS menubar to
> appear at the top of the screen?
>
> Normally I would use (System/setProperty
> "apple.laf.useScreenMenuBar", "true") and then
> (.setJMenuBar ...) in my main frame.
>
> This does not appear to work. The menu shows up in the frame itself
> as in Windows and the Apple menu shows only "clojure.main".
>
> I am running my program as a script - java -cp .:$CLOJURE_HOME/
> clojure.jar clojure.main dicon.clj
> and not compiling it into Java classes. Since I am calling
> clojure.main from my script it seems to be taking over the menubar.
>
> Is there a way around this?
>
> Bill
Use
java -Dcom.apple.mrj.application.apple.menu.about.name=yourAppName -
Dapple.laf.useScreenMenuBar=true ${THE_REST_OF_COMMAND_LINE}
That worked for me.
This tutorial helped me quite a lot:
http://www.devdaily.com/apple/mac/java-mac-native-look/java-on-mac.shtml
Cheers!
IgorR
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en