final DialogOption showYesNoCancelMessage(String message){
  int option;
  try {
    option=JOptionPane.showConfirmDialog(getParentComponent(),getLabel(message),I18n.tr("Message"),JOptionPane.YES_NO_CANCEL_OPTION);
  }
 catch (  InternalError ie) {
    option=JOptionPane.NO_OPTION;
  }
  if (option == JOptionPane.YES_OPTION)   return DialogOption.YES;
 else   if (option == JOptionPane.NO_OPTION)   return DialogOption.NO;
  return DialogOption.CANCEL;
}

final DialogOption showYesNoCancelMessage ( String message ) { int option ; try { option = JOptionPane . showConfirmDialog ( getParentComponent ( ) , getLabel ( message ) , I18n . tr ( "Message" ) , JOptionPane . YES_NO_CANCEL_OPTION ) ; } catch ( InternalError ie ) { option = JOptionPane . NO_OPTION ; } if ( option == JOptionPane . YES_OPTION ) return DialogOption . YES ; else if ( option == JOptionPane . NO_OPTION ) return DialogOption . NO ; return DialogOption . CANCEL ; }
displays a message to the user and returns messageservice . yes_option if the user selects yes and messageservice . no_option if the user selects no . messageservice . cancel_option if the user selects cancel .
