I\'m trying to do a little program in Java using Eclipse, and I\'m a little bit lost.
Could anybody explain me (in a \"for dummies way\") what do I have to do for repain
you have to split that to the separete methods, better would be using javax.swing.Action
instead of ActionListener
private void activateTimer(){
myTimer = new Timer(1000, myAction);
myTimer.start();
}
private Action myAction = new AbstractAction() {
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent e) {
whatever.redraw();
}
};