COPYRIGHT RESERVED 2009 BY MAX TSAI



Visit Max Tsai at Facebook | Twitter | atom

Showing posts with label JavaFX. Show all posts
Showing posts with label JavaFX. Show all posts

Wednesday, May 9, 2007

JavaFX - Quick Start on Eclipse ..

Doing JavaFX on Eclipse:

  1. Install openjfx plugin for Eclipse
    (Help > Software Updates > Find and Install)
    URL
    http://download.java.net/general/openjfx/plugins/eclipse/site.xml
  2. New Java Project
  3. New JavaFX file HelloWorld.fx
  4. Type in the sample code from openfx.dev.java.net
    import javafx.ui.*;

    class HelloWorldModel {
    attribute saying: String;
    }

    var model = HelloWorldModel {
    saying: "Hello World"
    };

    var win = Frame {
    title: bind "{model.saying} JavaFX"
    width: 200
    content: TextField {
    value: bind model.saying
    }
    visible: true
    };
  5. Right click on the project and Run As JavaFX Application (double click)
  6. Add argument: HelloWorld
  7. Here we go:

So, which one?

Just to be fair, here comes the Sun JavaFX officially announced in Java One:
http://www.sun.com/software/javafx/
Java based cross-platform (on Linux as well) scripting language for rich media.

So, Flash, Silverlight, and JavaFX - which one?

** one of my previous emails **
>
> Microsoft announced a few new Microsoft Web technologies that might
> interest you (and the faculty) at Mix07. You can find some of the
> conference video clips at: http://visitmix.com/
>
> A particular one is Silverlight, a cross-browser, cross-platform
> (Windows and OS X) plug-in for delivering the next generation of
> Microsoft .NET–based media experiences and rich interactive applications
> for the Web; aka, a Microsoft version of Adobe Flash/Apollo.
> You can find more information at: http://www.microsoft.com/silverlight/
> And, you can get 4G free streaming hosting space at Microsoft Live!:
> http://silverlight.live.com/ :-)

Friday, April 6, 2007

F3 gives me a reason to re-thinking about going Flash; oh, and Groovy ..

I probably should have posted this in my Webtops & RIA blog. Anyway ..

"F3 is a statically typed language that allows good integrated development environment (IDE) support and compile-time error reporting and has type inference, declarative syntax, and automatic data binding with full support for 2-D graphics and standard Swing components as well as declarative animation. You can also import Java class files, create new objects for the Java platform, call their methods, and implement interfaces for the Java platform."

http://blogs.sun.com/chrisoliver/category/F3

Groovy
http://groovy.codehaus.org/

---

Crossplatform is also important for RIA and Apollo is not ready for Linux!