Skip to content

Commit

Permalink
Anlegen einer Zeichnung.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Oct 21, 2010
1 parent 45ec0ff commit b819b7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Malen.java
Expand Up @@ -17,7 +17,8 @@ public void setBehaelter(Container behaelter)
private JButton loeschKnopf;
private JComboBox farbWahl;
private JButton endeKnopf;
private JPanel menue = new JPanel();;
private JPanel menue = new JPanel();
private Zeichnung zeichnung = new Zeichnung();

private static final String schwarz = "Schwarz";
private static final String rot = "Rot";
Expand All @@ -33,7 +34,8 @@ public void init()
behaelter.setBackground(Color.gray);

behaelter.add(menue, BorderLayout.NORTH);

behaelter.add(zeichnung, BorderLayout.CENTER);

loeschKnopf = new JButton("Löschen");
loeschKnopf.addActionListener(this);
loeschKnopf.setForeground(Color.black);
Expand Down

0 comments on commit b819b7f

Please sign in to comment.