[java] colore
import javax.swing.JFrame;
import javax.swing.JOptionPane;

class graf
{
public static void main(String args[])
{
String input=JOptionPane.showInputDialog("ecco il mio primo inserimento");
//int choice=Integer.parseInt(input);
//Shapes panel = new Shapes(choice);
JFrame application=new JFrame(); //crea il frame principale
application.setDefaultCloseOperation(JFrame.EXIT_O N_CLOSE);
application.setSize(300,300); // attributi dell'istanza "application"
application.setVisible(true);
application.setTitle(input);
application.setLocation(300,300);
}
}

Vorrei dare un colore allo sfondo del Frame.....come posso fare?