The actionPerformed Method
public void actionPerformed(ActionEvent e) {
if (e.getSource() == incButton)
valField.setText(Integer.toString(ctr.getVal));
The event handler for the Button invokes the appropriate counter method and updates the TextField.
We no longer use the TextField for the counter value.