|
@ -77,7 +77,7 @@ public class MouseGame extends JFrame { |
|
|
panel.setLayout(null); |
|
|
panel.setLayout(null); |
|
|
|
|
|
|
|
|
JPanel nordWand = new JPanel(); |
|
|
JPanel nordWand = new JPanel(); |
|
|
extracted(nordWand); |
|
|
|
|
|
|
|
|
reset(nordWand); |
|
|
nordWand.setBackground(new Color(0, 0, 0)); |
|
|
nordWand.setBackground(new Color(0, 0, 0)); |
|
|
nordWand.setBounds(0, 0, 696, 10); |
|
|
nordWand.setBounds(0, 0, 696, 10); |
|
|
panel.add(nordWand); |
|
|
panel.add(nordWand); |
|
@ -97,10 +97,10 @@ public class MouseGame extends JFrame { |
|
|
westWand.setBounds(0, 60, 10, 509); |
|
|
westWand.setBounds(0, 60, 10, 509); |
|
|
panel.add(westWand); |
|
|
panel.add(westWand); |
|
|
|
|
|
|
|
|
JPanel panel_1 = new JPanel(); |
|
|
|
|
|
panel_1.setBounds(801, 518, 83, 62); |
|
|
|
|
|
extracted(panel_1); |
|
|
|
|
|
contentPane.add(panel_1); |
|
|
|
|
|
|
|
|
JPanel zielFeld = new JPanel(); |
|
|
|
|
|
reset(zielFeld); |
|
|
|
|
|
zielFeld.setBounds(801, 518, 83, 62); |
|
|
|
|
|
contentPane.add(zielFeld); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -108,7 +108,7 @@ public class MouseGame extends JFrame { |
|
|
}//end standardkonstruktor |
|
|
}//end standardkonstruktor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void extracted(JPanel panel) { |
|
|
|
|
|
|
|
|
private void reset(JPanel panel) { |
|
|
panel.addMouseListener(new MouseAdapter() { |
|
|
panel.addMouseListener(new MouseAdapter() { |
|
|
@Override |
|
|
@Override |
|
|
public void mouseEntered(MouseEvent e) { |
|
|
public void mouseEntered(MouseEvent e) { |
|
|