File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Re: Pop up box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Re: Pop up box" Watch "Re: Pop up box" New topic

Re: Pop up box

Joe Cheung
Ranch Hand

Joined: Oct 18, 2002
Posts: 104
Dear all,
Does J2ME have any class or method to prompt pop-up box which I want to use to display some error message to users? The effect is similiar to the javascript pop-up window to alert the users that they have done something wrong.

Carlos Quiroz

Joined: Oct 27, 2003
Posts: 14
Try the alert class. You can display a message and have it on for a while ot until the user presses a key
David Price
Ranch Hand

Joined: Jan 22, 2003
Posts: 93
You'll find that class Alert has gained some new functionality in MIDP 2.0. In particular, it was often a problem in MIDP 1.0 that you couldn't get a callback from an Alert when it was dismissed; with MIDP 2.0, you can set the Alert's CommandListener so that some object gets a 'commandAction' callback when it's dismissed - great!
I agree. Here's the link:
subject: Re: Pop up box
It's not a secret anymore!