NumberFormatException
Previous    Next    Home    Source Code    Package

Notes
  1. The problem with the previous applet is fixed by adding
       try {
          count.setText(String.valueOf(Integer.parseInt(count.getText())+1));
       } catch (NumberFormatException e) {
          count.setText("0");
       }
    
    so the NumberFormatException is caught and the count is gracefully set to 0.