|
|
@ -87,20 +87,30 @@ public class MouseGame extends JFrame { |
|
|
|
nordWand.setBounds(0, 0, 696, 10); |
|
|
|
panel.add(nordWand); |
|
|
|
|
|
|
|
JPanel ostWand = new JPanel(); |
|
|
|
ostWand.setBackground(new Color(0, 0, 0)); |
|
|
|
ostWand.setBounds(686, 0, 10, 509); |
|
|
|
panel.add(ostWand); |
|
|
|
|
|
|
|
JPanel suedWand = new JPanel(); |
|
|
|
suedWand.setBackground(new Color(0, 0, 0)); |
|
|
|
suedWand.setBounds(0, 559, 696, 10); |
|
|
|
panel.add(suedWand); |
|
|
|
|
|
|
|
JPanel ostWand = new JPanel(); |
|
|
|
ostWand.setBackground(new Color(0, 0, 0)); |
|
|
|
ostWand.setBounds(686, 0, 10, 509); |
|
|
|
panel.add(ostWand); |
|
|
|
|
|
|
|
JPanel westWand = new JPanel(); |
|
|
|
westWand.setBackground(new Color(0, 0, 0)); |
|
|
|
westWand.setBounds(0, 60, 10, 509); |
|
|
|
panel.add(westWand); |
|
|
|
|
|
|
|
JPanel panel_1 = new JPanel(); |
|
|
|
panel_1.setBounds(801, 518, 83, 62); |
|
|
|
panel_1.addMouseListener(new MouseAdapter() { |
|
|
|
@Override |
|
|
|
public void mouseEntered(MouseEvent e) { |
|
|
|
robot.mouseMove(200, 170); |
|
|
|
} |
|
|
|
}); |
|
|
|
contentPane.add(panel_1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|