java graphics background jframe code example Example: jframe color private JFrame frame; frame.getContentPane().setBackground(Color.BLACK);