Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / July 2004

Tip: Looking for answers? Try searching our database.

Mac LAF under Windows

Thread view: 
ak - 10 Jul 2004 05:55 GMT
I search for some possibility to activate MacOS LAF under windows.
Any hints are welcome!

Signature

Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader

Cedric Lefebvre - 10 Jul 2004 08:07 GMT
That is not really complicated... There is a trick in the JDK to avoid
instanciating the Mac L&F under Windows, though it does not
forbid "sub.....ing" this L&F ;-)
Nevertheless, you should note that is is illegal

Cedric Lefebvre

> I search for some possibility to activate MacOS LAF under windows.
> Any hints are welcome!
Tor Iver Wilhelmsen - 10 Jul 2004 10:52 GMT
> I search for some possibility to activate MacOS LAF under windows.

IIRC the Mac L&Fs depend on code only present in a Mac JVM's
libraries, so even using the "subclass to override
isLookAndFeelSupported()" trick will probably not work.
Mark Smith - 10 Jul 2004 17:36 GMT
> > I search for some possibility to activate MacOS LAF under windows.
>
> IIRC the Mac L&Fs depend on code only present in a Mac JVM's
> libraries, so even using the "subclass to override
> isLookAndFeelSupported()" trick will probably not work.

Go have fun at this site, and have a look at the insanely cool 'Skin'
look and feel. There is an aqua theme pack available.

<http://www.javootoo.com/>

Regards,
Mark
Cedric Lefebvre - 11 Jul 2004 16:23 GMT
> IIRC the Mac L&Fs depend on code only present in a Mac JVM's
> libraries, so even using the "subclass to override
> isLookAndFeelSupported()" trick will probably not work.

No I confirm my information, this works. The code of the Mac L&F
is 100% full Java (obviously for a Swing L&F) and included inside J2SE.
I just don't remember if the ressources (icons) are present in the
non-Mac J2SE. If this is not the case, it is not very complicated to
get them and add them to your L&F.

Cedric Lefebvre
Karsten Lentzsch - 10 Jul 2004 20:43 GMT
> I search for some possibility to activate MacOS LAF under windows.
> Any hints are welcome!

Apple's Mac Aqua L&f requires Aqua,
it won't work on other platforms.

And in the past Apple sued parties
who tried to mimic their user interface
on non-Mac platforms.

Hope this helps,
Karsten
Roedy Green - 10 Jul 2004 21:13 GMT
>Apple's Mac Aqua L&f requires Aqua,
>it won't work on other platforms.

However, for personal use it is pretty easy to defang the pin that
stops Aqua from running on other platforms.  See
http://mindprod.com/jgloss/laf.html

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

ak - 10 Jul 2004 21:45 GMT
> >Apple's Mac Aqua L&f requires Aqua,
> >it won't work on other platforms.
>
> However, for personal use it is pretty easy to defang the pin that
> stops Aqua from running on other platforms.  See
> http://mindprod.com/jgloss/laf.html

my first question should be - where can i get it?
I have read that mac laf alredy in J2SE integriert - no need to download
macos.jar
However I can't find it on java 1.4.1_02 - com\sun\java\swing\plaf contains
only motif and windows.

Signature

Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader

Karsten Lentzsch - 10 Jul 2004 22:09 GMT
>>Apple's Mac Aqua L&f requires Aqua,
>>it won't work on other platforms.
>
> However, for personal use it is pretty easy to defang the pin that
> stops Aqua from running on other platforms.  See
> http://mindprod.com/jgloss/laf.html

That trick won't work for the Mac Aqua L&f.
The Mac Aqua L&f requires native resources.

The same is true for Sun's Windows L&f in
Windows XP mode. In this mode it requests
resources from the native skinning engine.

-- Karsten


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.