Slide 3.19: Other interfaces Slide 4.1: Programming Exercise I: my memento by using J2ME Home |
final Alert soundAlert = new Alert( "sound Alert" );
String
) and image, and which handles events like other screens.
The intended use of Alert
is to inform the user about errors and other exceptional conditions.
Alert
object with the given title.
soundAlert.setType( AlertType.ERROR );
Alert
.
The handling and behavior of specific AlertTypes
is described in AlertType.
An ERROR AlertType
is a hint to alert the user to an erroneous operation.
soundAlert.setString( "** ERROR **" );
Alert
.
java.util.Date now = new java.util.Date( );
Date
object and initializes it to represent the current time specified number of milliseconds since the standard base time known as “the epoch,” namely January 1, 1970, 00:00:00 GMT.
date.setDate( now );