48 lines
857 B
Java
48 lines
857 B
Java
package dev.kske.minesweeper;
|
|
|
|
import java.awt.EventQueue;
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
|
|
public class Minesweeper {
|
|
|
|
private JFrame mframe;
|
|
|
|
/**
|
|
* Launch the application.
|
|
*/
|
|
public static void main(String[] args) {
|
|
EventQueue.invokeLater(new Runnable() {
|
|
|
|
public void run() {
|
|
try {
|
|
Minesweeper window = new Minesweeper();
|
|
window.mframe.setVisible(true);
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Create the application.
|
|
*/
|
|
public Minesweeper() {
|
|
initialize();
|
|
}
|
|
|
|
/**
|
|
* Initialize the contents of the frame.
|
|
*/
|
|
private void initialize() {
|
|
mframe = new JFrame();
|
|
mframe.setResizable(false);
|
|
mframe.setTitle("Minesweeper");
|
|
mframe.setBounds(100, 100, 450, 300);
|
|
mframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
}
|
|
|
|
}
|