Pstros running as applet

[ main page ]

Aircraft demo - simple J2ME application running in pstros

Sorry, this browser is not Java(tm) enabled.

It either cannot run Java(tm) applets, or the running of applets is currently disabled in your browser.


F1 - left soft key
F2 - right soft key
Cursor arrows - phone directional keys
Enter or Ctrl - fire key

If keys are not responding then click on the applet to give it a focus

Constrains of the web enabled j2me code

There are some method calls that throw SecurityException when running in the web browser. It's the System.getProperty() and MIDlet.getAppProperty(). The web browser also deny the acces to local filesystem so rms cannot be saved and read from the local files. The same apply to configuration files.

Html code sample

The html code for integration of the pstros and j2me application into your web page is quite simple. Here is the snippet of the html code:

<applet
archive="pstros.jar,AircraftDemo.jar"
code= "ole.pstros.MainWeb"
width="128" height="152" >
<param name="midlet" value="AircraftDemo" />
</applet>

Applet properties:
archive - jar files (both pstros and j2me application)
code - the start class of the applet - should be allways set to ole.pstros.MainWeb
width, height - dimension of the applet in screen coordinates and also specifies
the device screen dimension
param midlet - the start class of the midp code