Your method
actionPerformed(Event)
starts with a capitalized letter. That is exclusive to classes, methods always start with small letter:
public void actionPerformed(ActionEvent e) {
repaint();
}
Please try to "format" the code, that gives you more overview.
In Eclipse that is right click -> "Source" -> "format"
Should be equal in Netbeans.