Results 1 to 2 of 2
  1. #1
    asifzbaig is offline Member
    Join Date
    May 2011
    Rep Power

    Default Problem with Look And Feel

    Hello everyone,

    I am just googling for some new Look and Feel Libraries and found jTattoo jar library that provides me with 12 Look and Feels .jar pack to use directly.....

    I have two problems associated with it :

    1) When i want to set the look and feel by providing full classname to the UIManager.setLookAndFeel(String) :
    Java Code:
    switch (lookAndFeelComboBox.getSelectedIndex()){
        case 1: UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
        case 2: UIManager.setLookAndFeel("");
                 // . . . 
        case 12: UImanager.setLookAndFeel("com.jtattoo.plaf.aluminum.AluminumLookAndFeel");
         default: UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
    new MainFrame().setVisible(true);
    catch(exception e){
    JOptionPane.showMessageDialog(null, "Error: "+e.getMessage(), "Error In Setting Look and Feel", JOptionPane.ERROR_MESSAGE);
    Items in lookAndFeelComboBox are:
    Java Code:
    This code give me ambigious result as: When i select a L'n'F (say Acryl) it works perfectly, then if i change L'n'F (say this time Aero) it also works perfectly BUT problem occurs when i change back to previous L'n'F, that is Acryl than it shows me an ambiguos result as the resulting look and feel is the mixture of of both Acryl and Aero (here pair of acryl and aero can be any other in given 12)
    I had crosscheck all the theme pairs and they shows me same kind of GUI error......Hope i am clear to you..

    2) My second question is that, is there any way so that i can set these external Look And Feels as my default look and feels??
    Doing this will ease my program by getting all these themes by getInstalledThemes(), plus, it will ad d the 5 default themes that is Metal, Nimbus, CDE/Motif, Wibdows and Windows Classic into my Look and Feel selection choices......

    I hope my both problems are clear to you...

  2. #2
    asifzbaig is offline Member
    Join Date
    May 2011
    Rep Power


    I am continously trying different things but my problem is not solved till now....

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. 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. About look and feel
    By makpandian in forum AWT / Swing
    Replies: 6
    Last Post: 02-13-2009, 03:55 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