Showing posts with label Java look and feel. Show all posts
Showing posts with label Java look and feel. Show all posts

Monday, October 15, 2012

Java Themes with JTattoo

First download the JTattoo.jar and add into your project classpath then you have to put the following code into your main method

[sourcecode language="java"]
public static void main(String []args){
try {
//here you can put the selected theme class name in JTattoo
UIManager.setLookAndFeel("com.jtattoo.plaf.texture.TextureLookAndFeel");

} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(PC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(PC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(PC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(PC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
}
[/sourcecode]

These are the JTattoo themes

1. TextureLookAndFeel - "com.jtattoo.plaf.texture.TextureLookAndFeel"


2. SmartLookAndFeel - "com.jtattoo.plaf.smart.SmartLookAndFeel"


3. NoireLookAndFeel - "com.jtattoo.plaf.noire.NoireLookAndFeel"


4. AcrylLookAndFeel - "com.jtattoo.plaf.acryl.AcrylLookAndFeel"


5. AeroLookAndFeel - "com.jtattoo.plaf.aero.AeroLookAndFeel"


6. AluminiumLookAndFeel - "com.jtattoo.plaf.aluminium.AluminiumLookAndFeel"


7. BernsteinLookAndFeel - "com.jtattoo.plaf.bernstein.BernsteinLookAndFeel"


8. FastLookAndFeel - "com.jtattoo.plaf.fast.FastLookAndFeel"


9. GraphiteLookAndFeel - "com.jtattoo.plaf.graphite.GraphiteLookAndFeel"


10. HiFiLookAndFeel - "com.jtattoo.plaf.hifi.HiFiLookAndFeel"


11. LunaLookAndFeel - "com.jtattoo.plaf.luna.LunaLookAndFeel"


12. McWinLookAndFeel - "com.jtattoo.plaf.mcwin.McWinLookAndFeel"


13. MintLookAndFeel - "com.jtattoo.plaf.mint.MintLookAndFeel"