/**
  * @return right value
  * @param commit if the value has to be committed first
  */
 public double getRightValue(final boolean commit) {
   if (commit) {
     double old = ((Number) m_right.getValue()).doubleValue();
     try {
       m_right.commitEdit();
     } catch (ParseException pe) {
       return old;
     }
   }
   return ((Number) m_right.getValue()).doubleValue();
 }
 @Override
 public boolean marathon_select(String value) {
   JComponent spinnerEditor = ((JSpinner) component).getEditor();
   if (spinnerEditor == null)
     throw new JavaAgentException("Null value returned by getEditor() on spinner", null);
   IJavaElement ele = JavaElementFactory.createElement(spinnerEditor, driver, window);
   ele.marathon_select(value);
   try {
     ((JSpinner) component).commitEdit();
   } catch (Throwable t) {
   }
   return true;
 }