From 94c64cc7e698179da5c10c849a6134b31a310708 Mon Sep 17 00:00:00 2001 From: Tobias Krause Date: Mon, 27 Dec 2021 17:09:16 +0100 Subject: [PATCH] gameexplorer: added game panel --- src/main/java/de/tims/gameexplorer/GameExplorer.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/tims/gameexplorer/GameExplorer.java b/src/main/java/de/tims/gameexplorer/GameExplorer.java index 9e78247..3c15004 100644 --- a/src/main/java/de/tims/gameexplorer/GameExplorer.java +++ b/src/main/java/de/tims/gameexplorer/GameExplorer.java @@ -7,6 +7,7 @@ public class GameExplorer { private JFrame frame; private JPanel explorerPanel; + private JPanel gamePanel; private JPanel navigationPanel; private JPanel border1; private JPanel border2; @@ -33,8 +34,9 @@ public class GameExplorer { buildExplorerPanel(); buildNavigationPanel(); + buildGamePanels(); - frame.add(explorerPanel); + frame.add(gamePanel); frame.setMinimumSize(minSize); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); @@ -144,6 +146,13 @@ public class GameExplorer { navigationPanel.add(chosenGame, gbc); } + private void buildGamePanels() { + gamePanel = new JPanel(); + gamePanel.setLayout(new BorderLayout()); + + gamePanel.add(navigationPanel, BorderLayout.PAGE_START); + } + public static void main(String[] args) { new GameExplorer(); }