Just how do you set the background color for a JFrame?
Retrieve the content pane for the frame and use the setBackground() method inherited from Component to change the color.
Example:
myJFrame.getContentPane().setBackground( desiredColor );
1.4m articles
1.4m replys
5 comments
57.0k users