n
frame.getContentPane().add(label);
n
//Display the window.
n
frame.pack(); frame.setVisible(true);
n }
n public
static void main(String[] args) {
n
//Schedule a job for the event-dispatching thread
n
//creating and showing this application's GUI.
n SwingUtilities.invokeLater(new
Runnable(){
n
public void run() {
n
createAndShowGUI();
n
}
n
});
n }
n}