Personal Basis Profile

Personal Basis Profile

An AWT application

An application to show a button and print a message when pressed is

This application will not work in Personal Basis Profile, because there is no Button object

Converting to an AWT application that works under PBP

An AWT application working under PBP

To compile the demo


javac -classpath .:/usr/local/personaljava/j2me-pp1.0/lib/personal.jar *.java
To run the demo

/usr/local/personaljava/j2me-pp1.0/bin/cvm PPButtonDemo

Xlets

Xlet life-cycle

Xlet interface

An Xlet is informed about each state change, as the management environment calls the methods of the Xlet interface

Xlet example

An example using the PPButton is To run the Xlet


cvm com.sun.xlet.XletRunner -name XletButtonDemo -path .

Xlet communication


Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Fri Dec 3 19:33:17 EST 2004
Copyright ©Jan Newmarch