April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Exemplo de JFrame
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}