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 / General / February 2006

Tip: Looking for answers? Try searching our database.

Mac OS X LookAndFeel on Windows

Thread view: 
Michele Damian - 25 Feb 2006 13:39 GMT
Hi,

   I'm programming on a Windows XP platform but I'm trying to use a
Mac LookAndFeel.

Exception first:
   the Win "src.zip" doesn't contain the package
"com.sun.java.swing.plaf.mac.MacLookAndFeel". :-(

I know, that isn't possibile because of the copyright but, maybe, it
isn't a bad idea import the
"com.sun.java.swing.plaf.mac.MacLookAndFeel". After that I can try to
make a code like this:

/********************************************************************************/

   Properties p = System.getProperties();
   p.put("os.name", "Mac"); // I'm not sure, it's to clear some
restriction on copyright
   System.setProperties(p);

   try {

UIManager.setLookAndFeel("com.sun.java.swing.plaf.mac.MacLookAndFeel");
   }
   catch(Exception e) {
       e.printStackTrace();
   }

/********************************************************************************/

Exception second:
   this hell of MacLookAndFeel isn't possible to find in the web. :-((

A way is to install the Mac JDK and get the MacLookAndFeel from its
"src.zip".

Exception third:
   I can't install the Mac JDK on Windows Xp, can I? :-(((

I try to use the Aqua LookAndFeel from
http://www.l2fprod.com/rw/default/ but it isn't really like a
MacLookAndFeel, also I can enxtend the java class like I want.

Do you know what I have to do? Thank you very much.

P.S.:  I'm sorry for my terrible english.

 |        |   |--------   |            |---------|
 |        |   |           |            |         |
 |--------|   |--------   |            |---------|
 |        |   |           |            |
 |        |   |--------   |---------   |
Ike - 25 Feb 2006 16:33 GMT
I think you may have better success with "skina look and feel". (
http://skinlf.l2fprod.com/ )

Hey...wasn;t there a lawsuit over this very issue!

-Ike

> Hi,
>
[quoted text clipped - 9 lines]
> "com.sun.java.swing.plaf.mac.MacLookAndFeel". After that I can try to
> make a code like this:

/***************************************************************************
*****/

>     Properties p = System.getProperties();
>     p.put("os.name", "Mac"); // I'm not sure, it's to clear some
[quoted text clipped - 8 lines]
>         e.printStackTrace();
>     }

/***************************************************************************
*****/

> Exception second:
>     this hell of MacLookAndFeel isn't possible to find in the web. :-((
[quoted text clipped - 18 lines]
>   |        |   |           |            |
>   |        |   |--------   |---------   |


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



©2009 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.