Dear All
I m using following
java default code for alter and prompt box. But this is not working. Can any one tell me where i am wrong. Or can any one tell me how to make default dialogbox having different icons of warning and informations etc.
public
String mesgBox(String str) {
alerts myalert = new alerts();
alerts myalert = new alerts(str);
myalert.dispose();
myalert.show();
String x ;
x = myalert.getSelected() ;
return(x);
}
public void promptBox(String str) {
prompt myprompt = new prompt(str);
myprompt.dispose();
myprompt.show();
}