Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Web Start (global menubar)



When running a JWS app on MacOS X 10.1.5, those menubars go to
the top of the screen -- the default in this case is NOT what it says in the docs (and not where I want them). Not for the ones I build with PB anyway.

The docs don't say how to change that behaviour for JWS apps,
and the methods given in the tech note will not work for JWS.

They do give the property to set, so all you have to do is add one line to your program :
System.setProperty("com.apple.macos.useScreenMenuBar", "false");
It seems that method should be mentioned in that tech note.



I haven't tried this but couldn't this be done in your app's JNLP file.
Perhaps something like:

app.jnlp
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://example.com/webstart/";
href="app.jnlp">
<information>
<title>JNLP Application</title>
<vendor>ACME, Inc.</vendor>
<description>An application to solve world hunger</description>
<homepage href="app.html" />
<icon href="app.gif" />
<offline-allowed />
</information>
<security><all-permissions /></security>
<resources>
<j2se version="1.3+" />
<jar href="app.jar" />
<jar href="jlfgr-1.0.jar"
download="lazy" />
<jar href="MRJToolkitStubs.zip"
download="lazy" />
<property name="Xfuture"
value="" />
</resources>
<resources os="Mac\ OS\ X" arch="ppc">
<property name="com.apple.macos.useScreenMenuBar"
value="false" />
<property name="com.apple.mrj.application.apple.menu.about.name"
value="App" />
<property name="Xdock:name"
value="App" />
</resources>
<application-desc main-class="com.example.app.App" />
</jnlp>

--
----------------------------------------------------------
Out of the 10Base-T, through the router, down the T1, over the
leased line, off the bridge, past the firewall... nothing but Net.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.