diff --git a/out/production/Tetris/Tetris/Board$1.class b/out/production/Tetris/Tetris/Board$1.class index 10b0287..66ad91a 100644 Binary files a/out/production/Tetris/Tetris/Board$1.class and b/out/production/Tetris/Tetris/Board$1.class differ diff --git a/out/production/Tetris/Tetris/Board.class b/out/production/Tetris/Tetris/Board.class index 6257b1d..42110a6 100644 Binary files a/out/production/Tetris/Tetris/Board.class and b/out/production/Tetris/Tetris/Board.class differ diff --git a/out/production/Tetris/Tetris/GameGui.class b/out/production/Tetris/Tetris/GameGui.class index 3f12ae5..4565d72 100644 Binary files a/out/production/Tetris/Tetris/GameGui.class and b/out/production/Tetris/Tetris/GameGui.class differ diff --git a/src/Tetris/GameGui.java b/src/Tetris/GameGui.java index 65fc0f0..3e09018 100644 --- a/src/Tetris/GameGui.java +++ b/src/Tetris/GameGui.java @@ -38,6 +38,8 @@ public class GameGui { panel.add(button2); panel.add(button3); + + frame.add(panel,BorderLayout.EAST); frame.setSize(width,height); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); diff --git a/src/Tetris/Menue.java b/src/Tetris/Menue.java new file mode 100644 index 0000000..326c05d --- /dev/null +++ b/src/Tetris/Menue.java @@ -0,0 +1,26 @@ +package Tetris; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JOptionPane; + +public class Menue { + + public static void main(final String[] args) { + final JFrame parent = new JFrame(); + JButton button = new JButton(); + + button.setText("Namen Eingeben"); + parent.add(button); + parent.pack(); + parent.setVisible(true); + + button.addActionListener(new java.awt.event.ActionListener() { + @Override + public void actionPerformed(java.awt.event.ActionEvent evt) { + String name = JOptionPane.showInputDialog(parent, + "What is your name?", null); + } + }); + } +} \ No newline at end of file