public boolean onClose(){
String[] choices = {"EXIT", "CANCEL"};
if ( 0 != Dialog.ask("Do you want to exit this program?",choices, 0) )
{
return false;
}
Status.show("Bye bye!");
System.exit(0);
return true;
}