MCPcopy Create free account
hub / github.com/AnthonyZabs/SimpleJavaLoginMD / main

Method main

src/com/login/Login.java:267–297  ·  view source on GitHub ↗

@param args the command line arguments

(String args[])

Source from the content-addressed store, hash-verified

265 * @param args the command line arguments
266 */
267 public static void main(String args[]) {
268 /* Set the Nimbus look and feel */
269 //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
270 /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
271 * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
272 */
273 try {
274 for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
275 if ("Nimbus".equals(info.getName())) {
276 javax.swing.UIManager.setLookAndFeel(info.getClassName());
277 break;
278 }
279 }
280 } catch (ClassNotFoundException ex) {
281 java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
282 } catch (InstantiationException ex) {
283 java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
284 } catch (IllegalAccessException ex) {
285 java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
286 } catch (javax.swing.UnsupportedLookAndFeelException ex) {
287 java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
288 }
289 //</editor-fold>
290
291 /* Create and display the form */
292 java.awt.EventQueue.invokeLater(new Runnable() {
293 public void run() {
294 new Login().setVisible(true);
295 }
296 });
297 }
298
299 // Variables declaration - do not modify//GEN-BEGIN:variables
300 private javax.swing.JPanel bg;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected