you have to call that function BEFORE instantiation of any GUI
related classes
for example
if you have you class Foo
public class Foo extends JPanel{
public static void main(String []args){
System.setProperty("apple.laf.useScreenMenuBar", "true");
}
}
that's probably won't work
but if you will have somethink like that
public class FooLauncher{
public static void main(STring []args){
System.setProperty("apple.laf.useScreenMenuBar", "true");
Foo.main(args);
}
}
that probably will work
On Apr 30, 2005, at 5:48 PM, Jeff Martin wrote:
It's good that this is documented, but the suggested workaround
doesn't work for me. I tried making the:
System.setProperty("apple.laf.useScreenMenuBar", "true");
The first line in my app, and I also tried adding this to my JNLP:
<property name="apple.laf.useScreenMenuBar" value="true" />
But both approaches seem to be a bust. Any other ideas?
jeff
On Apr 30, 2005, at 12:50 PM, Hsu wrote:
When I run my web start app on Tiger, it seems to ignore the
useScreenMenuBar setting:
http://developer.apple.com/releasenotes/Java/Java142RNTiger/
3_OutstandingIssues/chapter_4_section_3.html
Radar 3909714
Karl
--
What is life? A frenzy…
What is life? An illusion,
a shadow, a fiction,
and the greatest possession is nothing
since life is but a dream
and dreams are but dreams…
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
Dmitry Markman