@param args the command line arguments
(String args[])
| 77 | * @param args the command line arguments |
| 78 | */ |
| 79 | public static void main(String args[]) { |
| 80 | /* Set the Nimbus look and feel */ |
| 81 | //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> |
| 82 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. |
| 83 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html |
| 84 | */ |
| 85 | try { |
| 86 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { |
| 87 | if ("Nimbus".equals(info.getName())) { |
| 88 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); |
| 89 | break; |
| 90 | } |
| 91 | } |
| 92 | } catch (ClassNotFoundException ex) { |
| 93 | java.util.logging.Logger.getLogger(WaitingDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
| 94 | } catch (InstantiationException ex) { |
| 95 | java.util.logging.Logger.getLogger(WaitingDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
| 96 | } catch (IllegalAccessException ex) { |
| 97 | java.util.logging.Logger.getLogger(WaitingDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
| 98 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { |
| 99 | java.util.logging.Logger.getLogger(WaitingDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
| 100 | } |
| 101 | //</editor-fold> |
| 102 | |
| 103 | /* Create and display the dialog */ |
| 104 | java.awt.EventQueue.invokeLater(new Runnable() { |
| 105 | public void run() { |
| 106 | WaitingDialog dialog = new WaitingDialog(new javax.swing.JFrame(), true); |
| 107 | dialog.addWindowListener(new java.awt.event.WindowAdapter() { |
| 108 | @Override |
| 109 | public void windowClosing(java.awt.event.WindowEvent e) { |
| 110 | System.exit(0); |
| 111 | } |
| 112 | }); |
| 113 | dialog.setVisible(true); |
| 114 | } |
| 115 | }); |
| 116 | } |
| 117 | |
| 118 | // Variables declaration - do not modify//GEN-BEGIN:variables |
| 119 | private javax.swing.JLabel jLabel1; |
nothing calls this directly
no outgoing calls
no test coverage detected