mirror of
https://github.com/lov3b/Schack.git
synced 2025-01-18 21:00:11 +01:00
Set theme
This commit is contained in:
parent
65c1e22bbe
commit
1696c1519b
@ -11,6 +11,7 @@ import javax.swing.JMenu;
|
|||||||
import javax.swing.JMenuBar;
|
import javax.swing.JMenuBar;
|
||||||
import javax.swing.JMenuItem;
|
import javax.swing.JMenuItem;
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
import javax.swing.UIManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -27,6 +28,13 @@ public class Schack extends JFrame implements Runnable {
|
|||||||
getContentPane().addMouseListener(board);
|
getContentPane().addMouseListener(board);
|
||||||
Thread thread = new Thread(this);
|
Thread thread = new Thread(this);
|
||||||
|
|
||||||
|
// Set theme
|
||||||
|
try {
|
||||||
|
UIManager.setLookAndFeel(
|
||||||
|
UIManager.getSystemLookAndFeelClassName());
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
|
|
||||||
// Create menu
|
// Create menu
|
||||||
JMenuBar menuBar = new JMenuBar();
|
JMenuBar menuBar = new JMenuBar();
|
||||||
JMenu gameMenu = new JMenu("Game");
|
JMenu gameMenu = new JMenu("Game");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user