1

The default Look & Feel of Swing is not good looking for Linux platforms, The target Platforms are Windows and Linux, Can someone suggest are there any library which gives better look and feel similar to components appearing on windows platforms for Linux systems?

For windows, I am using system look and feel, this looks much better than in Linux. Also like to know how to load different look and feel depending on the platform.

FirmView
  • 3,112
  • 8
  • 32
  • 47

1 Answers1

1

You'll need to read the 'howto' for setting the look and feel. Oracle has one here: http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

To use GTK, you would use:

try
{
     UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
}
catch (ClassNotFoundException e)
{

}
catch (UnsupportedLookAndFeelException e)
{

}
bazwilliams
  • 320
  • 1
  • 6
  • Spent too long answering question - comments above point to better question. – bazwilliams Sep 01 '12 at 15:15
  • +1 for your answer, i had a look at the tutorial, i am looking for a library which gives similar appearence to windows in linux platforms – FirmView Sep 01 '12 at 15:21