26.7.10

DialogDisplayer & NotifyDescriptor

NotifyDescriptor d = new NotifyDescriptor.Confirmation(
"Do you really want to exit the application?",
"Exit",
NotifyDescriptor.YES_NO_OPTION);
if(DialogDisplayer.getDefault().notify(d) == NotifyDescriptor.YES_OPTION) {
return true;
}else{
return false;
}


  • Dialog API

No comments: