What look and feel does ubuntu use, (11 or higher)? I want to use the same in a swing application that will run on windows. Where can I find the jar for that lnf?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Java supports a
SystemLookAndFeelthat attempts to match the look of the native applications in each operating system, which is what I assume you want to do. I don’t know how well it succeeds in that task, though.There is an official tutorial on the look and feel settings here.
EDIT:
This snippet (plus any exception handling) seems to work pretty well on my Linux system
I did not test it extensively but it certainly looks more at home than the default look.
If you want to reproduce the GTK theme on an different computer you can try this:
com.sun.java.swing.plaf.gtk.GTKLookAndFeelis whatgetSystemLookAndFeelClassName()returns on Linux systems for recent Sun JREs. You may encounter problems if you use a JRE from a different vendor.That said, I am not sure how closely this would match the real thing when used on a non-Linux OS. If I were you, I would install a Linux distribution on a VirtualBox virtual machine and try my application in a proper testing environment.