Name
javax.microedition.lcdui.Display
Synopsis
This class implements the manager of the display and input devices of
the system. It includes methods for requesting that objects be
displayed on the devices, and for retrieving properties of the
devices. The setCurrent( )
method is used for
setting the current Displayable
and the
getCurrent()
method for retrieving the current
Displayable
. The callSerially( )
method causes the Runnable
object to
have its run( )
method called later. This method
can be used by applications to run an animation that is properly
synchronized with the repaint cycle.
public classDisplay
{ // public class methods public static DisplaygetDisplay
(MIDlet m); // public instance methods public voidcallSerially
(Runnable r); public DisplayablegetCurrent
( ); public booleanisColor
( ); public intnumColors
( ); public voidsetCurrent
(Alert alert, Displayable display); public voidsetCurrent
(Displayable display); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.