« No such thing as a... | Main | GetJar Webinar TODAY... »
 20090310 Tuesday March 10, 2009

JavaFX Mobile, boldly go where no one has gone before

     Click on arrow to PLAY.  Click on picture to PAUSE/RESUME.  Note: If video
     playback is blank or slow, reload the page and make sure QuickTime 7.6
     is installed on your system.


JavaFX Mobile, the final frontier. These are the voyages of the JavaFX Mobile programmers. It's endless mission to program cool things for next generation cell phones. To seek out rich user interfaces. To boldly go where no mobile program has gone before...

The cool part of JavaFX is the simple way to add video to your app. And, because it's JavaFX, you program it the same way on your mobile device as you would for your desktop. Write once, and run wherever Captain Kirk says to run it. Try playing the video above and see what I mean...


Code snippet:

var player = MediaPlayer {
  autoPlay: false
  media : Media {
    source : "{__DIR__}star-trek.flv";
  }
}

var view:MediaView = MediaView {
    visible: true
    mediaPlayer: bind player
}



That's it. It's that easy in JavaFX, for both Mobile and Desktop--a lot easier than the new Captain Kirk will have at Starfleet Academy this summer, I'm guessing. I'm still deciding whether the new Kirk, Spock, and McCoy will be better than the old Kirk, Spock, and McCoy though. Jury is still out until May 8, 2009...

[Java ME and J2ME] ( March 10, 2009 05:03 PM ) Permalink Comments [6]


Comments:

Very cool Hinkmond.
Thanks,
T

Posted by Thom Theriault on March 10, 2009 at 06:05 PM PDT #

Thanks, Thom. It was fun creating it. BTW, try using Alt+LeftMouseClick on the video window and drag it around your Desktop (requires Firefox 3.0 or equivalent browser). Then click in the separated window to pause and resume the video. That part is really cool about JavaFX...

Hinkmond

Posted by Hinkmond Wong on March 11, 2009 at 05:02 PM PDT #

You think everyone has Mac or windows?

Posted by 82.44.168.110 on March 12, 2009 at 01:03 PM PDT #

I don't. I <3 Solaris and Linux. With not enough engineers to work on other ports though, there is only so much you can do. Are you offering to help us port JavaFX to Solaris and Linux? :-) We can't pay you anything if you do help us, of course. :-)

Hinkmond

Posted by Hinkmond Wong on March 12, 2009 at 01:08 PM PDT #

I have some questions about JavaFx mobile as I have heard people calling it vapour ware so...

>> can I test it on an actual phone?

>> have all mobile device makers signed up to distribute it?

Thanks

Posted by Arthur on March 14, 2009 at 09:17 AM PDT #

Hi Arthur,

Yes, JavaFX does run on actual phones. I'll post of videos of some of the various cell phones I currently run on. It's not vaporware.

To answer your question about mobile device makers, Sun has engaged with Sony Ericsson and LG Electronics to develop proof
of concept implementations of JavaFX Mobile running on a number of
handsets. These proof of concepts are for demonstration purposes only for now
and are not available to the public.

But, of course you might see me upload some videos of them from time to time. ;-)

Hinkmond

Posted by Hinkmond Wong on March 16, 2009 at 12:33 PM PDT #

Post a Comment:

Comments are closed for this entry.



Theme originally based on design by Bryan Bell