JavaFX Script Player running on a Java ME cell phone

I've been working with Misha Krivoruchko, Jan Sterba, Igor Karpov, Oleg Pliss, Peter Kim, and the rest of the team led by Richard Gregor on the JavaFX Script Player project and on running cell phone demos for the upcoming JavaOne conference. Jan got the first demo running on his device in Prague this morning. I spent some time getting it to run on the cell phone we have in California. I finally had success and was able run this demo of JavaFX Script running on a Pantech Duo C810.

See:

Success: Running JavaFX on a Java ME cell phone

Yeah, I know. It doesn't look like much, but when you realize it's JavaFX script running on Java ME it makes you think about the possibilities... :-)




Some fun JavaFX Script code for FancyGraphics:
import javafx.gui.\*;

// This version of the class relies on the Reprise APIs

Canvas {
   content: [
       Rectangle {
           x: 10
           y: 10
           width: 100
           height: 100
           /\* fill: LinearGradient {
               stops: [
                   Stop {offset: 0.0, color: Color {red: 0.0 green: 0.5 blue: 1.0}},
                   Stop {offset: 0.5, color: Color {red: 0.4 green: 0.1 blue: 0.4}},
                   Stop {offset: 1.0, color: Color {red: 0.6 green: 0.4 blue: 0.2}}
               ]
           } \*/
       },
       Circle {
           centerX: 150
           centerY: 150
           radius: 20
       },
       Line {
           opacity: 0.5
           x1: 100
           y1: 100
           x2: 200
           y2: 200
           fill: Color {red:0.6 green: 0.6 blue: 0.6}
           strokeWidth: 10
           stroke: Color {red: 0.8 green: 0.8 blue: 0.8}
           strokeDashArray: [10.0,20.0,30,40,50,60]
       },
       Text {
           font: Font {
            name: "Courier"
            size: 20
           }
           x: 50
           y: 50
           content: "Hello, FX!"
           fill: Color {red: 0.8 green: 0.4 blue: 0.4}
           stroke: Color {red:0.9 green: 0.2 blue: 0.2}
           strokeLineJoin: StrokeLineJoin.MITER
           strokeLineCap: StrokeLineCap.ROUND
       },
Path {
           transform: Translate {x: 120 y:160 }
           elements: [
               MoveTo {x:-30 y:-70},
               LineTo {x:-50 y:-70},
               LineTo {x:-50 y:-50},
               LineTo {x:50 y:-50},
               LineTo {x:50 y:-30},
               LineTo {x:30 y:-30},
               MoveTo {x:0 y:-150},
               LineTo {x:0 y:-50},
               LineTo {x:50 y:50},
               LineTo {x:-50 y:50},
               LineTo {x:0 y:-50},
               MoveTo {x:0 y:50},
               LineTo {x:0 y:150}
           ]
           stroke: Color {red:0.7 green:0.25 blue:0.0}
           strokeWidth: 10
           strokeDashArray: []
           fill:null
           transform: [
             Rotate {x: 120 y:160 angle: 30},
             Translate {x: 120 y:160 },
             Scale {x:0.5 y:0.5 },
           ]
       }              
       ]
}


Comments:

Hi,
I'm happy to hear about JavaFX player on top of Java ME stack.
Are there / will there be any details available (memory consumption, requirements, installation procedure,...) ?

Thanks,

Tomas Hrasky
Sun Campus Ambassador
University of West Bohemia, Pilsen, Czech Republic

Posted by Tomas Hrasky on April 09, 2008 at 04:50 PM PDT #

Hi Tomas,

For official details, you'll have to wait until the JavaOne conference. :-)

I'm just giving a sneak-peek on what's coming up...

;-)

Hinkmond

Posted by Hinkmond Wong on April 10, 2008 at 04:07 AM PDT #

That's what I thought ;)
I'll be watching the blog for official slides from JavaOne. Enjoy this great conference! (I hope I'll get there one day in the future too ;) )

Tomas

Posted by Tomas Hrasky on April 10, 2008 at 10:25 PM PDT #

Hi,

I've been experimenting with JavaFX on the desktop and a little for Applets. Using NetBeans and the NetBeans JavaFX Plugin gets one up and running very quickly for this.

I wanted to ask about the starting point for JavaFX Mobile. I've seen posts about cool things some people are doing but on the JavaFX Mobile - Getting Started page : http://www.sun.com/software/javafx/mobile/getstarted.jsp

there isn't any real pointers on getting started.

Any advice on exactly this? Getting started with JavaFX for mobiles?

Thanks

Matthew

Posted by Matthew Ryan on April 12, 2008 at 03:49 PM PDT #

Hi Matthew,

Unfortunately, the details for using JavaFX Script on mobile devices is not set yet. So, that's why you're not seeing much information about it.

The best I can recommend is to wait until after JavaOne 2008 Conference when there should be presentations and more info posted for public access about JavaFX Script on Mobile.

There is a lot being worked on now, so it is still shifting around.

Hinkmond

Posted by Hinkmond Wong on April 14, 2008 at 08:02 AM PDT #

Hi Hinkmond,

Thanks for the response.

I've spent the last week getting more familiar with using SVG for sexier interfaces for MIDP, but now I think if I wait a little longer I can be doing JavaFX on mobile which is a more pleasing prospect for me.

Thanks

Matt

Posted by Matthew Ryan on April 14, 2008 at 08:24 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

Hinkmond Wong's blog on making Machine to Machine (M2M) and the Incredible Internet of Things (IoT) smarter with Java Embedded Technologies

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
3
4
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today