I have a class which extends canvas.I created one more canvas class. But I couldn’t switch between them.
Is it possible to switching between canvases in J2ME?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Displayable object is an object that has the capability of being placed on the display. A Displayable class implements Displayable interface.
The Display class is the display manager that is instantiated for each active MIDlet and provides methods to retrieve information about the device’s display capabilities. A canvas is made visible by calling the Display.setCurrent() method.
A canvas implements the Displayable interface.
A Displayable class is a UI element that can be shown on the device’s screen while the Display class abstracts the display functions of an actual device’s screen and makes them available to you. It provides methods to show or change the current UI element that you want displayed. Thus, a MIDlet shows a Displayable UI element on a Display using the setCurrent(Displayable element) method of the Display class.