Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about java look and feel  RSS feed

 
li sliz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm new of java.
i know under code can make the look of current look
public static void main (String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
e.printStackTrace();
}
new calculator();
}


and how can make the look of office 2003 .
and how make the look of Windows Classic.theme.
and how make the look of i draw.
thanks.
 
Animesh Saxena
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this.

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

There are more classes you can try.

But dont try in Linux, coz i guess it wont support WindowsLookAndFeel

Animesh Saxena
 
li sliz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks very much
but how can i use the native theme like windows classes or office 2003.
and if i want use the theme of i draw myself.
what i should to do.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!