<< OpenDDS 1.0 Released | Home | Quote Of The Day >>

JavaFX Script At The JUG Tonight

I will be talking about JavaFX Script at the St. Louis Java Users Group tonight.

There will be one IntelliJ IDEA 6 license to be given away to an audience member at the meeting.

Come!

[Update] The presentation material is posted to both St. Louis JUG website and my articles page.

Tags :


Re: JavaFX Script At The JUG Tonight

I have a question about your presentation slides. On slide 11 you mention that: "The import statement has additional functionalities – aliasing class name – can appear anywhere – importing a JavaFX file searches and runs the file" I've tried aliasing successfully, but would like an example of the second two points. Where did you obtain this information? Thanks, Jim Weaver jim.weaver at lat-inc dot com

Re: JavaFX Script At The JUG Tonight

I learned this either from the mailing list or from reading the library source. Here search means to locate the file from the CLASSPATH, and run means to bring the definitions made in the file into existence as well as executing all the top level statements in the file. This is done before anything else defined in the importing file is executed. And this is done only once.

Here the example I used to explore this feature:

// foo/Foo.fx
import java.lang.System;

var o = Baz {str: "Hello"};
System.out.println(o);

System.out.println("About to import bar.Bar");
import bar.Bar;
System.out.println("Done to import bar.Bar");

System.out.println("About to import bar.Bar again");
import bar.Bar;
System.out.println("Done to import bar.Bar again");
// bar/Bar.fx
import java.lang.System;

class Baz {
  attribute str: String*;
}

System.out.println("From bar.Bar");
[weiqi@gao] $export CLASSPATH=.
[weiqi@gao] $javafx.sh foo.Foo
compile thread: Thread[AWT-EventQueue-0,6,main]
compile 0.018
From bar.Bar
Baz {str: ['Hello']}
About to import bar.Bar
Done to import bar.Bar
About to import bar.Bar again
Done to import bar.Bar again
init: 0.064
  

Re: JavaFX Script At The JUG Tonight

Thanks Weiqi! Can you shoot me an email sometime? I'm just two states over (in Indiana), and will be presenting JavaFX to the Indianapolis JUG in August. I'd like to share ideas regarding that. Thanks, Jim Weaver jim dot weaver at lat-inc dot com http://www.jmentor.com/about.php

Add a comment Send a TrackBack