Как установить кадр Colo на Java
getContentPane().setBackground(Color.YELLOW); //Whatever color
Uninterested Unicorn
getContentPane().setBackground(Color.YELLOW); //Whatever color
[your frame name].getContentPane().setBackground([your color here]);
or
[your panel name here].setBacroundColor([your color here])
private JFrame frame;
frame.getContentPane().setBackground(Color.BLACK);
myJFrame.getContentPane().setBackground( desiredColor );
[your frame name].getContentPane().setBackground([your color here]);
or
[your panel name here].setBacroundColor([your color here])
import java.awt.Color;
....
[your panel name here].setBackground(Color.[some color like BLACK]);