-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
21 lines (20 loc) · 755 Bytes
/
Main.java
File metadata and controls
21 lines (20 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import javax.swing.*;
import javax.swing.plaf.ColorUIResource;
import java.awt.*;
public class Main {
/**
* The Main function to start the game.
* Don't make any changes here
* @param args
*/
public static void main(String[] args) {
PlayableLogic gameLogic = new GameLogic();
GUI_for_chess_like_games gui = new GUI_for_chess_like_games(gameLogic, "Vikings Chess Game");
SwingUtilities.invokeLater(() -> {
// Set the UIManager property to make the focus color transparent
UIManager.put("Button.focus", new ColorUIResource(new Color(0, 0, 0, 0)));
UIManager.put("Button.select", new ColorUIResource(new Color(0, 0, 0, 0)));
gui.start();
});
}
}