title: How to change the background color on a Java panel?
body: <p>Right now, the background I get is a grey. I want to change it to black. I tried doing something like setBackground(color.BLACK); but it didnt work. Any suggestions?       </p>
  
  <pre><code>public test() 
  {
      setTitle("Adjustment Form");
      setSize(670,450);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      setLocationRelativeTo(null);
  
      setLayout(new GridLayout(4,6,2,2));
      setVisible(true);   
  }
  </code></pre>