From e83a05d06be9080655295d35da674c746c7455c1 Mon Sep 17 00:00:00 2001 From: Tobias Krause Date: Wed, 22 Dec 2021 17:16:33 +0100 Subject: [PATCH] gameexplorer: added gui --- .../de/tims/gameexplorer/GameExplorer.java | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/main/java/de/tims/gameexplorer/GameExplorer.java 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(); + } +}