Trying to animate the filling of the board.

This is just for educational purposes and at no means necessary for the game.
Yeah I'm pretty productive LOL
This commit is contained in:
2020-07-27 00:52:42 +02:00
parent 5f795bfc60
commit 818786cfba
18 changed files with 198 additions and 81 deletions

View File

@@ -7,15 +7,20 @@ public class Executor extends JFrame {
}
private void initUI(){
Board board = new Board();
add(board);
Panel panel = new Panel();
add(panel);
pack();
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
}
public static void main(String[] args) {
Executor executor = new Executor();
executor.setVisible(true);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
Executor executor = new Executor();
executor.setVisible(true);
}
});
}
}