Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, and thanks.
I want to show a modal alert ("File not found") to user in my program.
but when program riches this line, after executing this line, goes to rest of program an runs them.

I am a beginner in j2me.
Please show some template to me if possible.

here is my code :


C#
public void SayError(Exception ex){
    display=Display.getDisplay(this);
    Alert alert=new Alert("Error",ex.toString(),null,AlertType.CONFIRMATION);
    alert.setTimeout(Alert.FOREVER);
    display=Display.getDisplay(this);
    display.setCurrent(alert);
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900