Browse Source

gameexplorer: added game panel

gameexplorer
Tobias Krause 3 years ago
committed by Lorenz Hohmann
parent
commit
52b0f2d064
  1. 11
      src/main/java/de/tims/gameexplorer/GameExplorer.java

11
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();
}

Loading…
Cancel
Save