The MIDP Networking Model in J2ME
In MIDP, as in J2SE, IO streams are the primary mechanism available to applications to read and write streams of data. Both J2SE and J2ME have a java.io package that contains these
Read tutorialTHE TUTORIAL LIBRARY
In MIDP, as in J2SE, IO streams are the primary mechanism available to applications to read and write streams of data. Both J2SE and J2ME have a java.io package that contains these
Read tutorialThe RMS supports the creation and management of multiple record stores, shown in Figure below. A record store is a database whose central abstraction is the record. Each record sto
Read tutorialThe term double buffering refers to a technique for buffering a graphics context before displaying it. The idiom requires that you use two graphics contexts -or buffers - hence its
Read tutorialThe point (x, y) specifies to a drawing function a location relative to the point (0, 0). The point (0, 0) is the origin of the Graphics. When you first obtain a reference to your
Read tutorialTo draw text, specify the anchor point and the weighting of the anchor point. You can also specify the font of the text to be drawn.
Read tutorialThe Graphics class also supports the drawing of arcs. To draw an arc, you must specify six parameters. These parameters are the four quantities that define the arc's bounding recta
Read tutorialYou can draw two kinds of rectangles: regular and rounded. Rectangles, like all geometric drawing, can be drawn in different colors by specifying the color of the graphics pen.
Read tutorialTo draw a line, you must specify the (x, y) coordinates of its start and end points. The (x, y) coordinates are defined relative to the point (0, 0), which, at the time the graphic
Read tutorialUnlike a TextField, a TextBox is a multiline, editable text area. TextBox is a kind of Screen, not an Item. Because a TextBox is a Displayable, you must create a MIDlet object to d
Read tutorialThe program below demonstrates the use of the ImageItem MIDP UI component class. An ImageItem is a subclass of Item, so it must be placed in a Form as demonstrated by the listing.
Read tutorialA ticker is an object that provides scrolling text across the top of the display. A Ticker is associated with the display, not with the screen. You place a Ticker on a screen using
Read tutorialThe J2ME example shown below places four items on a Form: two gauges and a String label for each one. The labels identify the two different types of gauges defined by the Gauge cla
Read tutorialOne example today. A better developer tomorrow.