mirror of
				https://github.com/lov3b/Schack.git
				synced 2025-11-04 07:00:21 +01:00 
			
		
		
		
	Set theme
This commit is contained in:
		@@ -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");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user