|
|
@ -19,7 +19,7 @@ public class MouseGame extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel contentPane; |
|
|
|
Robot robot = new Robot(); |
|
|
|
public Robot robot = new Robot(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -45,7 +45,7 @@ public class MouseGame extends JFrame { |
|
|
|
//Fensterrahmen Haupt Layout |
|
|
|
setTitle("Maze Game"); |
|
|
|
setBounds(100, 100, 900, 650); |
|
|
|
|
|
|
|
robot.mouseMove(200, 170); |
|
|
|
|
|
|
|
contentPane = new JPanel(); |
|
|
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
|
|
@ -110,7 +110,7 @@ public class MouseGame extends JFrame { |
|
|
|
|
|
|
|
}//end standardkonstruktor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void reset(JPanel panel) { |
|
|
|
panel.addMouseListener(new MouseAdapter() { |
|
|
|
@Override |
|
|
|