I'm liking this JavaFX thingy

| 3 Comments

I think I may end up liking this JavaFX thingy after all. Here's a simple script written in JavaFX:

package test;
   import javafx.ui.Button;
   import javafx.ui.Frame;
   import javafx.ui.RootPane;
   import java.lang.System;
   Frame
   {
      width:200
      height:60
      visible: true
      title: "JavaFX example"
      onClose: operation() { System.exit(0); }
      content: RootPane
      {
         content: Button
         {
            text: "Click me!"
            action: operation() {
               System.out.println("Goodbye!");
               System.exit(0);
            }
         }
      }
   }

I'm a long way away from knowing how to use JavaFX the way that Flash developers can use Flash, but JavaFX has some pretty cool capabilities that could be tapped to make interesting applications. It is geared toward making applications that are delivered through a web browser, through the Java Web Start system, but it can be used to make purely desktop applications as well. Some of the demos are really cool, such as the one where some of Sun's developers used JavaFX to partially recreate the website for Tesla Motors. All you need in order to run those demos is to go here and download the Java Runtime Environment for Windows. If you use a Mac, you should already have everything you need to try them.

3 Comments

Early mornin java is the best :)

Early mornin java is the best :)

You're such a geek, Mike.

(But that's a good thing...)

Leave a comment

March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Recent Entries

The three purposes of the federal income tax law
Businesses will spend about 3.4 billion man-hours and individuals about 1.7 billion hours figuring out their taxes this year.…
Progress of a different sort
You know we have reached a level of decadence seldom seen in the history of the West when our women…
And police wonder why the public rarely trusts them
But there is some good news to report here, too. The Maryland state law, as noted, is the first…

Subscribe

Advertisements

OpenID accepted here Learn more about OpenID