View Single Post
  #9 (permalink)  
Old 05-01-2008, 09:43 PM
lonelyShoes lonelyShoes is offline
Member
 
Join Date: May 2008
Posts: 6
lonelyShoes is on a distinguished road
To use the LAF used by the native OS:
UIManager.setLookAndFeel(UIManager.getSystemLookAn dFeelClassName());

Code from Sun's Swing Tutorial, look here for more detail.

Yes, this is Swing only, not AWT. And as a user of both Windows and Linux systems: while AWT bore a passing resemblance to GTK a few years ago, GTK looks very different these days. Also, AWT doesn't have to be used on Unix/Linux, those systems will run Swing applications just fine. (I am a Swing developer, and use Ubuntu 8.04 )
Reply With Quote