title: How to set background color of a button in Java GUI?
body: <p>Below is the code which creates 9 buttons in gridlayout form on a specific pannel3. What i want is to make the background of each button black with grey text over it. 
  Can anyone help please?</p>
  
  <pre><code> for(int i=1;i&lt;=9;i++)
   {
       p3.add(new JButton(""+i));
   }
  </code></pre>