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: apple.laf.useScreenMenuBar doesn't work under OS 10.4



however it's possible to create non-gui class that will launch gui class



public class NONGUICLASS{

    public static void main(String []args){
        System.setProperty("apple.laf.useScreenMenuBar",???);
        GUICLASS.main(args);//you can use reflection too if you want
    }
}

public class GUICLASS extends <any AWT/SWING component>{
    public static void main(String []args){
        .................
    }
}


should work 
I found that approach useful if someone wants to deploy application as 2clickable jar file


On Jun 15, 2005, at 10:27 PM, Scott Kovatch wrote:


On Jun 15, 2005, at 9:49 PM, Dmitry Markman wrote:


On Jun 15, 2005, at 9:38 PM, Scott Kovatch wrote:

or at the very least the first line of your application

it could be not enough
if your main class is derived from AWT/Swing component
the very first line in the main method or even in static initializer will be too late

Exactly. The best place to put it is in your Info.plist or on a command line using -Dapple.laf.... This is also supposed to be working correctly for Web Start apps as well (all apple.laf properties are now considered 'safe'.) I know this is true in 1.5 and should also be true for 1.4.2.

Scott

------------------
Scott Kovatch
Apple Computer
Java Runtime Classes
Cleveland Hts, OH
email@hidden

I am Scott Kovatch, and I approved this message.


Dmitry Markman


 _______________________________________________
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

References: 
 >apple.laf.useScreenMenuBar doesn't work under OS 10.4 (From: "Eric Kolotyluk" <email@hidden>)
 >Re: apple.laf.useScreenMenuBar doesn't work under OS 10.4 (From: Scott Kovatch <email@hidden>)
 >Re: apple.laf.useScreenMenuBar doesn't work under OS 10.4 (From: Dmitry Markman <email@hidden>)
 >Re: apple.laf.useScreenMenuBar doesn't work under OS 10.4 (From: Scott Kovatch <email@hidden>)



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.