What is the Alert class?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the Alert class?
Rating:
The Alert class is a subclass of the Screen class. It provides user interface. The main function of the Alert class is to inform a user about any errors or exceptions. It has the following two constructors:
- Title: It specifies the label or caption for an instance of the Alert class.
- Alert text: It displays the alert message.
- Alert type: It specifies an image to be displayed with the specified message. It is an optional parameter.
- A: It specifies one of the AlertType constants such as WARNING, INFO, etc.
Rating:
Was this information helpful?
Other articles
- What is the RecordListener interface?
- What is the purpose of implementing MIDletStateChangeException in code?
- What is the newMessage() method?
- What is the createImage() method?
- What is the paint() method?