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?
for(int i=1;i<=9;i++)
{
p3.add(new JButton(""+i));
}