Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By JosAH

Thread: How to install Look & Feel

  1. #1
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Question How to install Look & Feel

    I have been using L&F that jdk provides, but I want to install MAC OS
    L&F. So I downloaded the zip file. I read it's guide after unzipping but I don't get a thing on how to install it in jdk folder and use in programs.

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    It is easy...

    you can just add it as a lib right into your IDE to use with all your projects :)
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,785
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Webuser View Post
    It is easy...

    you can just add it as a lib right into your IDE to use with all your projects :)
    That is nonsense; what if the target doesn't have an IDE running? The laf.jar should be put in the JRE/lib/ext directory so it can always be found and an application should set the laf like this:

    Java Code:
    public boolean setLAF(String laf) {
    
            try {
                UIManager.setLookAndFeel(laf);
                return true;
            }
            catch (Exception e) { 
                setLAF(UIManager.getSystemLookAndFeelClassName());
                return false;
            }
    }
    kind regards,

    Jos
    Thesisus likes this.

  4. #4
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Default

    I have been working with default LaF, I never tried others. But when I saw Quaqua(Mac style) LaF, I couldn't resist any more. Now I can use one.

    Thanks for the reply.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,785
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Prajin View Post
    I have been working with default LaF, I never tried others. But when I saw Quaqua(Mac style) LaF, I couldn't resist any more. Now I can use one.

    Thanks for the reply.
    You're welcome; be careful with these LAFs: they may look nice to you but another person might hate that LAF. It is safest to stick with the system supplied LAF and maybe give your user the option to use another one if wanted. There are many different LAFs around on the net: there's the org.fife.plaf, the com.jgoodies.looks.plastic, the com.jtattoo.plaf and many many more and they come in different flavours too.

    kind regards,

    Jos

Similar Threads

  1. Help on Look and Feel
    By mine0926 in forum NetBeans
    Replies: 4
    Last Post: 05-05-2010, 05:27 AM
  2. Look and Feel of GUI
    By titir in forum AWT / Swing
    Replies: 9
    Last Post: 04-21-2010, 02:34 PM
  3. About look and feel
    By makpandian in forum AWT / Swing
    Replies: 6
    Last Post: 02-13-2009, 03:55 AM
  4. Look and Feel
    By Stein in forum New To Java
    Replies: 10
    Last Post: 10-03-2008, 05:07 AM
  5. Look and Feel
    By arun_kumar in forum AWT / Swing
    Replies: 1
    Last Post: 11-17-2007, 07:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •