/*
* Application: Hangman
* Authour: Deleepa
* Date: 25th Feb 2013
*/
package main;
import gui.HangmanGame;
import gui.StartPage;
import utils.WriteToFile;
public class Hangman {
//this method sets the nimbus look and feel for the entire application
public static void setLookAndFeel(){
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(StartPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(StartPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(StartPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(StartPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
}
public static void main(String[] args) {
setLookAndFeel();
StartPage game = new StartPage();
game.setVisible(true);
}
}