Rick
0
Q:

JFrame background color

package Exaple;

import java.awt.Color;

import javax.swing.JFrame;

public class Window {

	public static void main(String[] args) {
		
		JFrame frame = new JFrame(); 
		frame.setExtendedState(JFrame.MAXIMIZED_BOTH); 
		frame.setVisible(true);
		frame.setTitle("Expaple");
		frame.setBackground(Color.BLUE);
	}

}
1
getContentPane().setBackground(Color.YELLOW);  //Whatever color
0
setBackground(Color.red);
0

New to Communities?

Join the community