private void updateColor(){
  try {
    BreakpointConditionParser.evaluate(inputField.getText());
    inputField.setBackground(Color.WHITE);
  }
 catch (  final InvalidFormulaException e) {
    inputField.setBackground(Color.RED);
  }
}

private void updateColor ( ) { try { BreakpointConditionParser . evaluate ( inputField . getText ( ) ) ; inputField . setBackground ( Color . WHITE ) ; } catch ( final InvalidFormulaException e ) { inputField . setBackground ( Color . RED ) ; } }
updates the color of the input field depending on whether the entered formula string is valid or not .
