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