|
@ -7,6 +7,7 @@ public class GameExplorer { |
|
|
|
|
|
|
|
|
private JFrame frame; |
|
|
private JFrame frame; |
|
|
private JPanel explorerPanel; |
|
|
private JPanel explorerPanel; |
|
|
|
|
|
private JPanel gamePanel; |
|
|
private JPanel navigationPanel; |
|
|
private JPanel navigationPanel; |
|
|
private JPanel border1; |
|
|
private JPanel border1; |
|
|
private JPanel border2; |
|
|
private JPanel border2; |
|
@ -33,8 +34,9 @@ public class GameExplorer { |
|
|
|
|
|
|
|
|
buildExplorerPanel(); |
|
|
buildExplorerPanel(); |
|
|
buildNavigationPanel(); |
|
|
buildNavigationPanel(); |
|
|
|
|
|
buildGamePanels(); |
|
|
|
|
|
|
|
|
frame.add(explorerPanel); |
|
|
|
|
|
|
|
|
frame.add(gamePanel); |
|
|
|
|
|
|
|
|
frame.setMinimumSize(minSize); |
|
|
frame.setMinimumSize(minSize); |
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
@ -144,6 +146,13 @@ public class GameExplorer { |
|
|
navigationPanel.add(chosenGame, gbc); |
|
|
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) { |
|
|
public static void main(String[] args) { |
|
|
new GameExplorer(); |
|
|
new GameExplorer(); |
|
|
} |
|
|
} |
|
|