Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System or User Defined LookAndFeel

Tim Koop
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.

I have a swing application, and I want it to look like the System's look and feel, so I have this line at the begining:

However, I also want the user to be able to pick his/her favourite other look and feel if it is different, such as with a -D in the command or a setting in the file. The only problem is that if nothing is defined, it defaults to swing Metal, which doesn't look as good as anything else.

Does anyone know a good way to allow the user to pick any LookAndFeel, but still set it to be the SystemLookAndFeel if nothing else is explicitly chosen?

Thanks in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic