|
@ -21,6 +21,8 @@ public class MouseGame extends JFrame { |
|
|
private JPanel contentPane; |
|
|
private JPanel contentPane; |
|
|
public Robot robot = new Robot(); |
|
|
public Robot robot = new Robot(); |
|
|
|
|
|
|
|
|
|
|
|
public Color farbeBeige = new Color(128, 128, 128); |
|
|
|
|
|
|
|
|
int resetX = 200; |
|
|
int resetX = 200; |
|
|
int resetY = 170; |
|
|
int resetY = 170; |
|
|
|
|
|
|
|
@ -63,7 +65,7 @@ public class MouseGame extends JFrame { |
|
|
setForeground(Color.GRAY); |
|
|
setForeground(Color.GRAY); |
|
|
setBackground(Color.DARK_GRAY); |
|
|
setBackground(Color.DARK_GRAY); |
|
|
contentPane.setForeground(new Color(0, 0, 0)); |
|
|
contentPane.setForeground(new Color(0, 0, 0)); |
|
|
contentPane.setBackground(new Color(128, 128, 128)); |
|
|
|
|
|
|
|
|
contentPane.setBackground(farbeBeige); |
|
|
|
|
|
|
|
|
JLabel labelStart = new JLabel("Start"); |
|
|
JLabel labelStart = new JLabel("Start"); |
|
|
labelStart.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
labelStart.setHorizontalAlignment(SwingConstants.CENTER); |
|
|