Home arrow static arrow Java Programming [Archive] - how to set JFrame's color?
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - how to set JFrame's color?
This topic has 4 replies on 1 page.

Posts:260
Registered: 4/8/04
how to set JFrame's color?  
Aug 3, 2004 10:25 AM



 
thanks
 

Posts:316
Registered: 4/7/04
Re: how to set JFrame's color?  
Aug 3, 2004 10:33 AM (reply 1 of 4)



 
Refer to the API.

See [url=http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/UIManager.html#setLookAndFeel(java.lang.String)]UIManager[/url] and [url=http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/metal/MetalLookAndFeel.html#setCurrentTheme(javax.swing.plaf.metal.MetalTheme)]MetalLookAndFeel[/url]
 

Posts:316
Registered: 4/7/04
Re: how to set JFrame's color?  
Aug 3, 2004 10:37 AM (reply 2 of 4)



 
Also see [url=http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/synth/package-summary.html]Synth[/url]
 

Posts:27
Registered: 7/27/04
Re: how to set JFrame's color?  
Aug 3, 2004 10:42 AM (reply 3 of 4)



 
getContentPane().setBackground(Color.RED); for the background
 

Posts:27
Registered: 7/27/04
Re: how to set JFrame's color?  
Aug 3, 2004 10:42 AM (reply 4 of 4)



 
getContentPane().setBackground(Color.RED); for the backgroundwiki/./
 
This topic has 4 replies on 1 page.