Type: Posts; User: Chidy
try to make add and counter Class variable
May be if our forum Vip means this try it public void actionPerformed(ActionEvent event) { if(event.getSource()==add){ counter++;} }