/** Save the history settings with the new value. */
 private void saveHistorySettings() {
   try {
     int steps = Integer.parseInt(m_limitField.getText());
     if (steps < 0) {
       throw new NumberFormatException("Integer should be a positive number");
     }
     ApplicationSettings.setHistoryLimit(steps);
     dispose();
   } catch (NumberFormatException e1) {
     JOptionPane.showMessageDialog(
         this,
         "You inserted an invalid value in the steps history field: " + e1.getMessage(),
         "Input Error",
         JOptionPane.WARNING_MESSAGE);
   }
 }