Professional Documents
Culture Documents
Color;
import java.awt.Font;
import javax.swing.*;
frame.setBackground(new Color(255,69,0));
frame.setVisible(true);
frame.setSize(500,500);
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setBackground(new Color(255,69,0));
frame.add(label);
}
}