New Panel for chess statistics

Gui
Justin 2025-06-18 16:54:10 +02:00
parent 6baea13c56
commit af8c068fce
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,7 @@ public class Gui {
frame.setSize(1600, 1000); frame.setSize(1600, 1000);
frame.setLocationRelativeTo(null); frame.setLocationRelativeTo(null);
frame.add(chessPanel()); frame.add(chessPanel());
frame.add(statsPanel());
frame.setDefaultCloseOperation(2); frame.setDefaultCloseOperation(2);
frame.setVisible(true); frame.setVisible(true);
@ -46,4 +47,10 @@ public class Gui {
return chessPanel; return chessPanel;
} }
public JPanel statsPanel() {
JPanel statsPanel = new JPanel();
statsPanel.setBackground(new Color(0x0d1b2a));
return statsPanel;
}
} }