String () { if (myUseNumAfterFilter.isSelected()) { try { Long.parseLong(myNumAfter.getText()); } catch(NumberFormatException ex) { return getChangeFromParseError(); } } if (myUseNumBeforeFilter.isSelected()) { try { Long.parseLong(myNumBefore.getText()); } catch(NumberFormatException ex) { return getChangeToParseError(); } } return myDateFilterComponent.validateInput(); }