How to implement "GTKLookAndFeel"
Hello,
I want to implement some theme on my application. I am new with swing and someone suggest me to use GTKLookAndFeel class. I try to implement it by statement :
UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
then it gives me error :
java.lang.ClassNotFoundException: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
I inclued path of src from jdk in CLASSPATH.
I am using JDK 1.5.
Can Any body help me?
If you know source from where I can get all class file required for GTKLookAndFeel then please give it's reference to me so i can check it by replacing existing one.
Thanks in advance
Thanks kirillg for reply,
I changed my JDK and now I have latest JDK "Java SE 6 BETA 2". With this jdk I found one src folder in which GTKLookAndFeel.java is present But I didn't found GTKLookAndFeel.class.
I try to make class file but this one is related to many other files which are in complex structure and thst's why I am fail to make class file.
I am working on Windows platform.
Can you know other source from which i can get all required class files to implement GTK.
Thanks
You don't need to build this class since it's a part of JRE installation on the specific platform. However, as GtkLookAndFeel uses the underlying *native* renderer, it's not available on Windows. The same goes for WindowsLookAndFeel that uses the *native* rendering - it's not available on other platforms.
Thanks for your valuable guidelines.
I am making changing in look of my application using UIManager.put
I have make many changes but I am not able to make change in titlebar background color and border color of all frames and dialogs.
If you know the key for changing these then please reply me.
I am posting same problem as new thread in forum.
Thanks