« Previous day (Apr 29, 2007) | Main | Next day (May 1, 2007) »
 20070430 Monday April 30, 2007

F3, it's not just for desktops, Fun, Fun, Fun F3 on Java ME technology

The fun part after getting Chris Oliver's F3 running on a Java ME cell phone yesterday is that I can change the F3 app on-the-fly without having to javac compile it. Niiice... :-) Especially when working on something that doesn't have a terminal screen or shell. (I don't think they ported Xemacs to a Motorola e680 yet)

See:

F3 running on Java ME CDC

In this demo I'm running another simple test from Paru with a F3 Canvas drawing a cyan filled rectangle with a purple border. Here's the F3 code that is running on my Java ME cell phone:

import f3.ui.*;
import f3.ui.canvas.*;
import java.awt.Frame as AWTFrame;
import java.awt.Dimension;

var canvas = Canvas {
   content: Rect {
       x: 20
       y: 20
       height: 80
       width: 300
       arcHeight: 20
       arcWidth: 20
       fill: cyan
       stroke: purple
       strokeWidth: 2
   }

};

var frame = new AWTFrame();
frame.add(canvas.getComponent());
frame.setSize(new Dimension(400, 400));
frame.setVisible(true); 
F3. It's not just for desktops anymore! :-)

[Java ME and J2ME] ( April 30, 2007 08:29 AM ) Permalink Comments [2]





Theme originally based on design by Bryan Bell