Skip to content

Commit 48f9628

Browse files
author
Joseph Kerkhof
committed
Empty canvas to make our game
1 parent f966d8b commit 48f9628

File tree

2 files changed

+264
-0
lines changed

2 files changed

+264
-0
lines changed

.idea/workspace.xml

Lines changed: 239 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/PathFinder.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import java.awt.Dimension;
2+
3+
import javax.swing.*;
4+
5+
class PathFinder {
6+
public static void main(String[] args) {
7+
// schedule this for the event dispatch thread (edt)
8+
SwingUtilities.invokeLater(new Runnable() {
9+
public void run() {
10+
displayWindow();
11+
}
12+
});
13+
}
14+
15+
private static void displayWindow() {
16+
// Create and set up the window.
17+
JFrame frame = new JFrame("PathFindingAI");
18+
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
19+
frame.setPreferredSize(new Dimension(800, 800));
20+
21+
// Display the window.
22+
frame.pack();
23+
frame.setVisible(true);
24+
}
25+
}

0 commit comments

Comments
 (0)