diff --git a/src/main/java/de/tims/gameexplorer/GameExplorer.java b/src/main/java/de/tims/gameexplorer/GameExplorer.java new file mode 100644 index 0000000..3ca8927 --- /dev/null +++ b/src/main/java/de/tims/gameexplorer/GameExplorer.java @@ -0,0 +1,39 @@ +package de.tims.gameexplorer; + +import javax.swing.*; + +public class GameExplorer { + + private JFrame frame; + private JPanel explorerPanel; + private JButton fleetstormBtn; + private JButton fourwinsBtn; + private JButton tictactoeBtn; + private JButton leaderboardBtn; + + public GameExplorer() { + frame = new JFrame("1000 infomagische Spiele"); + + explorerPanel = new JPanel(); + + fleetstormBtn = new JButton("Schiffe versenken"); + fourwinsBtn = new JButton("Vier gewinnt"); + tictactoeBtn = new JButton("TicTacToe"); + leaderboardBtn = new JButton("Leaderboard"); + + explorerPanel.add(fleetstormBtn); + explorerPanel.add(fourwinsBtn); + explorerPanel.add(tictactoeBtn); + explorerPanel.add(leaderboardBtn); + + frame.add(explorerPanel); + + frame.setSize(640, 480); + frame.setResizable(true); + frame.setVisible(true); + } + + public static void main(String[] args) { + new GameExplorer(); + } +}