LookAndFeel

How to get linux lookandfeel for java application?any method or code ?Help pleaseThanx in Advance.
[126 byte] By [student@sunDNa] at [2007-11-27 8:59:33]
# 1

No such thing. Linux is just a kernel, it doesn't have a look and feel. You might be after the GtkLookAndFeel, though. It's not distributes (AFAIK) with any JDK other than the Linux one, though you can probably get hold of it from somewhere. Or maybe the MotifLookAndFeel. Beyond that, it's just like setting any other look and feel, it's all in Teh Docs ?

georgemca at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 2
I am using Fedora 7 so I want my java application should look as any other application in Fedora.That I am asking....!How to get systems lookandfeel
student@sunDNa at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 3
> I am using Fedora 7 so I want my java application> should look as any other application in Fedora.> That I am asking....!> How to get systems lookandfeelLook at the docs, look in particular at the method UIManager.getSystemLookAndFeelClassName
georgemca at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 4
That dose not workI have tried that also but the applications LookAndFeel style remains Metal theme provided by JDK
student@sunDNa at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 5
What doesn't work? I only asked you to look at the documentation
georgemca at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 6
Try this UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JL.Nayaka at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 7

> Try this

> UIManager.setLookAndFeel(UIManager.getSystemLookAndFe

> lClassName());

Isn't it annoying that you have to call a method on UIManager, passing in the result of another method on the same class? Would it really be so hard for UIManager to also have a void useSystemLookAndFeel() method? *sigh* Sun and their funny ways

georgemca at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 8
I think that UIManager.getSystemLookAndFeelClassName() returns class for defaultlook and feel installed on the system.
JL.Nayaka at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...
# 9

> I think that

> UIManager.getSystemLookAndFeelClassName() returns

> class for defaultlook and feel installed on the

> system.

Well, yeh. It returns the FQN of the relevant class. But then you have to pass that back in to UIManager to install it. Poor design. You shouldn't have to inform a class about data you just asked it for!

georgemca at 2007-7-12 21:27:17 > top of Java-index,Java Essentials,Java Programming...