We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Java Look and Feel
Page Index Toggle Pages: 1
Java Look and Feel (Read 463 times)
Java Look and Feel
Sep 8th, 2009, 10:47pm
 
I have a form . I want to use Look and Feel In java to Change Style of Form .How can i Do?
Re: Java Look and Feel
Reply #1 - Sep 9th, 2009, 12:24am
 
I'm guessing that you are using swing components (which generally don't work well with processing).

In short: Code:
...
public static void main(String[] args) {
   try {
     // Set System L&F
     UIManager.setLookAndFeel(
             UIManager.getSystemLookAndFeelClassName());
   } catch (Exception e) {
      // didn't change the look and feel
      // fegeddaboutit
   }

 PApplet.main(new String[] {"MyProcessingSketch" });//or a new instance of your class

}
...


From:
http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html
Page Index Toggle Pages: 1