Skip to content

Commit

Permalink
Better syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Sep 6, 2015
1 parent c80cb24 commit 9a394de
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/me/guoyunhe/fontweak/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -774,24 +774,17 @@ public static void main(String args[]) {
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>

//</editor-fold>

MainWindow mw;
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
MainWindow mw = new MainWindow();
mw.setVisible(true);
}
java.awt.EventQueue.invokeLater(() -> {
MainWindow mw = new MainWindow();
mw.setVisible(true);
});

}
Expand Down

0 comments on commit 9a394de

Please sign in to comment.