Java Reference
In-Depth Information
Figure 5-9. An Alert with a Gauge
Listing 5-3. Configuring the Alert
public Alert get_cannotAddLocationAlert() {
if (cannotAddLocationAlert == null)
{
cannotAddLocationAlert = new Alert("Cannot Add Location");
cannotAddLocationAlert.setString("An error occurred adding the
location you entered. It has not been added.");
cannotAddLocationAlert.setTimeout(10000);
cannotAddLocationAlert.addCommand(get_backCommand());
}
return cannotAddLocationAlert;
}
 
Search WWH ::




Custom Search