Hey guys,
I'm playing with Swing components in Java. I noticed that my Java application (that is using system L&F according to Sun's tutorials) doesn't look quite like other Java applications that I have installed (it's somewhat... ugly). For comparison, I've attached a screenshot comparing my Java app and Azureus.
Why is that so?
This is the code that I used for setting L&F:
Code:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (UnsupportedLookAndFeelException e) {
}
catch (ClassNotFoundException e) {
}
catch (InstantiationException e) {
}
catch (IllegalAccessException e) {
}
Bookmarks