private boolean validConsist(){
  int cN=validConsist(consistTextField.getText());
  if (cN == -1) {
    consistStatus.setText(rb.getString("EditStateERROR"));
    JOptionPane.showMessageDialog(this,rb.getString("ToolTipConsist"),rb.getString("DIALOG_NceConsist"),JOptionPane.ERROR_MESSAGE);
    return false;
  }
  return true;
}

private boolean validConsist ( ) { int cN = validConsist ( consistTextField . getText ( ) ) ; if ( cN == - 1 ) { consistStatus . setText ( rb . getString ( "EditStateERROR" ) ) ; JOptionPane . showMessageDialog ( this , rb . getString ( "ToolTipConsist" ) , rb . getString ( "DIALOG_NceConsist" ) , JOptionPane . ERROR_MESSAGE ) ; return false ; } return true ; }
check for valid consist , popup error message if not
