public static void main(String[] args) {
   EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           JFrame frame = new ObjectInspectorFrame();
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           frame.setVisible(true);
         }
       });
 }
Exemplo n.º 2
0
 /**
  * ** Queues the invocation of the specified Runnable on the EventQueue ** @param r The Runnable
  * to execute
  */
 public static void invokeLater(Runnable r) {
   if (r != null) {
     // Toolkit.getDefaultToolkit().getSystemEventQueue().invokeLater(r);
     EventQueue.invokeLater(r);
   }
 }