Set theme

This commit is contained in:
lov3b 2022-03-22 21:19:54 +01:00
parent 65c1e22bbe
commit 1696c1519b

View File

@ -11,6 +11,7 @@ import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
/**
*
@ -27,6 +28,13 @@ public class Schack extends JFrame implements Runnable {
getContentPane().addMouseListener(board);
Thread thread = new Thread(this);
// Set theme
try {
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
}
// Create menu
JMenuBar menuBar = new JMenuBar();
JMenu gameMenu = new JMenu("Game");