|
@ -21,8 +21,10 @@ 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); |
|
|
|
|
|
public Color farbeSchwarz = new Color(0, 0, 0); |
|
|
|
|
|
|
|
|
public Color paneFarbeBackground = new Color(128, 128, 128); |
|
|
|
|
|
public Color paneFarbeForeground = new Color(0, 0, 0); |
|
|
|
|
|
|
|
|
|
|
|
public Color panelRahmenFarbeBackground = new Color(0, 0, 0); |
|
|
|
|
|
|
|
|
public Font fontTahoma = new Font("Tahoma", Font.BOLD, 30); |
|
|
public Font fontTahoma = new Font("Tahoma", Font.BOLD, 30); |
|
|
|
|
|
|
|
@ -67,8 +69,8 @@ public class MouseGame extends JFrame { |
|
|
|
|
|
|
|
|
setForeground(Color.GRAY); |
|
|
setForeground(Color.GRAY); |
|
|
setBackground(Color.DARK_GRAY); |
|
|
setBackground(Color.DARK_GRAY); |
|
|
contentPane.setForeground(farbeSchwarz); |
|
|
|
|
|
contentPane.setBackground(farbeBeige); |
|
|
|
|
|
|
|
|
contentPane.setForeground(paneFarbeForeground); |
|
|
|
|
|
contentPane.setBackground(paneFarbeBackground); |
|
|
|
|
|
|
|
|
JLabel labelStart = new JLabel("Start"); |
|
|
JLabel labelStart = new JLabel("Start"); |
|
|
labelStart.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
labelStart.setHorizontalAlignment(SwingConstants.CENTER); |
|
@ -91,25 +93,25 @@ public class MouseGame extends JFrame { |
|
|
|
|
|
|
|
|
JPanel nordWand = new JPanel(); |
|
|
JPanel nordWand = new JPanel(); |
|
|
reset(nordWand); |
|
|
reset(nordWand); |
|
|
nordWand.setBackground(new Color(0, 0, 0)); |
|
|
|
|
|
|
|
|
nordWand.setBackground(panelRahmenFarbeBackground); |
|
|
nordWand.setBounds(0, 0, 696, 10); |
|
|
nordWand.setBounds(0, 0, 696, 10); |
|
|
panel.add(nordWand); |
|
|
panel.add(nordWand); |
|
|
|
|
|
|
|
|
JPanel suedWand = new JPanel(); |
|
|
JPanel suedWand = new JPanel(); |
|
|
reset(suedWand); |
|
|
reset(suedWand); |
|
|
suedWand.setBackground(new Color(0, 0, 0)); |
|
|
|
|
|
|
|
|
suedWand.setBackground(panelRahmenFarbeBackground); |
|
|
suedWand.setBounds(0, 559, 696, 10); |
|
|
suedWand.setBounds(0, 559, 696, 10); |
|
|
panel.add(suedWand); |
|
|
panel.add(suedWand); |
|
|
|
|
|
|
|
|
JPanel ostWand = new JPanel(); |
|
|
JPanel ostWand = new JPanel(); |
|
|
reset(ostWand); |
|
|
reset(ostWand); |
|
|
ostWand.setBackground(new Color(0, 0, 0)); |
|
|
|
|
|
|
|
|
ostWand.setBackground(panelRahmenFarbeBackground); |
|
|
ostWand.setBounds(686, 0, 10, 509); |
|
|
ostWand.setBounds(686, 0, 10, 509); |
|
|
panel.add(ostWand); |
|
|
panel.add(ostWand); |
|
|
|
|
|
|
|
|
JPanel westWand = new JPanel(); |
|
|
JPanel westWand = new JPanel(); |
|
|
reset(westWand); |
|
|
reset(westWand); |
|
|
westWand.setBackground(new Color(0, 0, 0)); |
|
|
|
|
|
|
|
|
westWand.setBackground(panelRahmenFarbeBackground); |
|
|
westWand.setBounds(0, 60, 10, 509); |
|
|
westWand.setBounds(0, 60, 10, 509); |
|
|
panel.add(westWand); |
|
|
panel.add(westWand); |
|
|
|
|
|
|
|
@ -140,8 +142,8 @@ public class MouseGame extends JFrame { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Color getFarbeBeige() { |
|
|
|
|
|
return farbeBeige; |
|
|
|
|
|
|
|
|
public Color getPanelRahmenFarbeBackground() { |
|
|
|
|
|
return panelRahmenFarbeBackground; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|