42 lines
655 B
Java
42 lines
655 B
Java
/**
|
|
*
|
|
*/
|
|
package gui;
|
|
|
|
import java.awt.Dialog;
|
|
import java.io.IOException;
|
|
|
|
import javax.swing.SwingUtilities;
|
|
|
|
/**
|
|
* @author nicolas
|
|
*
|
|
*/
|
|
public class main {
|
|
|
|
/**
|
|
* @param args
|
|
*/
|
|
public jeu fenetre;
|
|
public static void main(String[] args) {
|
|
// TODO Auto-generated method stub
|
|
SwingUtilities.invokeLater(new Runnable(){
|
|
public void run(){
|
|
//On crée une nouvelle instance de notre JDialog
|
|
jeu fenetre = null;
|
|
|
|
try {
|
|
|
|
fenetre = new jeu();
|
|
} catch (IOException e) {
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
}
|
|
fenetre.setVisible(true);//On la rend visible
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
}
|