Results 1 to 6 of 6
  1. #1
    justbeller is offline Member
    Join Date
    Dec 2010
    Posts
    57
    Rep Power
    0

    Post How to work Nimbus Look & feel in java

    Hello Every one

    I set Nimbus look & feel but its not working completely means its not work on JTabbedPane & also not on component which are added in JTabbedPane so help me
    this my code:

    UIManager.setLookAndFeel("com.sun.java.swing.plaf. nimbus.NimbusLookAndFeel");

    Yougeshwar Khatri

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,733
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by justbeller View Post
    I set Nimbus look & feel but its not working completely means its not work on JTabbedPane & also not on component which are added in JTabbedPane so help me
    this my code:

    UIManager.setLookAndFeel("com.sun.java.swing.plaf. nimbus.NimbusLookAndFeel");
    Strange ... it works fine for me (including those JTabbedPanes). I'm running Java version 1.6.20.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    hello justbeller

    the nimbus look & feel is a class the comes with java 6. please check your java version and tell which components inside the jtabbedpane are not working with nimbus look & feel or perhaps post your code.

  4. #4
    justbeller is offline Member
    Join Date
    Dec 2010
    Posts
    57
    Rep Power
    0

    Default

    I have jdk 7
    its only work on JTabble & ManuBar in same program not working on JtabbedPane
    where I write this code
    UIManager.setLookAndFeel("com.sun.java.swing.plaf. nimbus.NimbusLookAndFeel");

  5. #5
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by justbeller View Post
    I have jdk 7
    its only work on JTabble & ManuBar in same program not working on JtabbedPane
    where I write this code
    UIManager.setLookAndFeel("com.sun.java.swing.plaf. nimbus.NimbusLookAndFeel");

    i just read Nimbus Look-and-Feel in JDK 7

    The Nimbus look-and-feel for Swing was introduced in JDK 6u10 as a replacement for the old Metal LoF. With JDK 7, Nimbus will be moved from an Oracle-proprietary extension (com.sun.java.swing) to a standard API (javax.swing) so that it becomes a true first class Swing citizen.

    so look at this tutorial. hope, this help.
    Last edited by j2me64; 01-18-2011 at 02:00 PM.

  6. #6
    justbeller is offline Member
    Join Date
    Dec 2010
    Posts
    57
    Rep Power
    0

    Default

    Hey Its working by using this code

    UIManager.setLookAndFeel("com.sun.java.swing.plaf. nimbus.NimbusLookAndFeel");
    SwingUtilities.updateComponentTreeUI(this);

    thanks every one for discussion

Similar Threads

  1. How to work Nimbus Look & feel in java
    By justbeller in forum Java 2D
    Replies: 1
    Last Post: 01-18-2011, 07:59 AM
  2. Java Look & Feel: how to change default settings?
    By mirsev in forum New To Java
    Replies: 0
    Last Post: 07-21-2010, 07:48 PM
  3. table renderer problem in nimbus look and feel
    By Allgorythm in forum New To Java
    Replies: 0
    Last Post: 02-22-2010, 01:20 PM
  4. Replies: 1
    Last Post: 01-21-2010, 10:20 AM
  5. vista look and feel in windows 2000 using java
    By zion892 in forum New To Java
    Replies: 1
    Last Post: 11-23-2009, 08:30 AM

Posting Permissions

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