Setting Windows XP themes in java

Hi everyone,

I have been using the following technique to get Windows themes in my UI:

UIManager.setLookAndFeeL(UIManager.getSystemLookAndFeelClassName());

or

UIManager.setLookAndFeeL("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

Both result in the themes for old windows environments.  Is there any way to get themes for Windows XP?
The14followerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zzynxSoftware engineerCommented:
I use the first one with success.
Sure you didn't choose for the classic view on that PC?
0
zzynxSoftware engineerCommented:
>> Sure you didn't choose for the classic view on that PC?
Do your other applications (e.g. the windows explorer) have the Windows XP look?
0
zzynxSoftware engineerCommented:
What JDK are you using?
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

zzynxSoftware engineerCommented:
0
expertmbCommented:
a separate jar is available for that
0
The14followerAuthor Commented:
Sorry for further questions.  I don't know how to do that.  What I do is to have my "Display Properties" in the "Themes" option set as "Windows XP (Modified)".

That was not enough to get it in my java applications.
0
zzynxSoftware engineerCommented:
So your other applications (e.g. the windows explorer) do have the Windows XP look?
0
The14followerAuthor Commented:
Mr. zzynx
Yes, of course. Explorer has XP themes.
I am using JDK 1.4.0 and also JDK 1.4.2

Mr. expertmb
Where is the jar needed to do my task?
0
expertmbCommented:
not tested this, searched not getting where this jar is.
looks-win-1.2.0.jar
0
zzynxSoftware engineerCommented:
>> I am using JDK 1.4.0 and also JDK 1.4.2
Make sure you run on the version 1.4.2 since the Windows XP look was introduced in that release.
(see: http://java.sun.com/docs/books/tutorial/uiswing/misc/plaf.html)
0
expertmbCommented:
JDK 1.4.2
has win xp L&F.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zzynxSoftware engineerCommented:
Other interesting remark on that page:
If you are going to set the look and feel, you should do it as the very first step in your application.
0
zzynxSoftware engineerCommented:
Also make sure you don't have a swing.properties file (cf. same page + the forum link I posted before)
0
expertmbCommented:
>>you should do it as the very first step in your application.
you can change the L&F after also
0
zzynxSoftware engineerCommented:
>> you can change the L&F after also
Of course (also mentioned on that page) but not with the code posted by the author.
And that was what I meant to say.
0
The14followerAuthor Commented:
My JDK is now 1.4.0. I would try it tomorrow on 1.4.2 and see.
0
zzynxSoftware engineerCommented:
OK. We'll certainly hear from you ;°)
0
b3lzCommented:
if that doesn't work, use the free JGoodies rar (www.jgoodies.com), it's ****ing great and beautiful,

greets belz
0
The14followerAuthor Commented:
Thanks everyone for help.  I hope that grading was fair.
0
zzynxSoftware engineerCommented:
Thanks for accepting.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.