Top Stories by James L. Weaver
James Weaver’s JavaFX Blog
Kevin Nilson, the leader of the Silicon Valley Web Developer JUG, relayed to
me the idea of creating an application in JavaFX Script that consists of a
wheel that has the names of JUG attendees on it. The wheel would revolve
and land on a name, who would then receive a prize. Today's post is a first
cut at this, which also demonstrates several compiled JavaFX Script features.
Here's a screenshot of the application:
When the program starts up, a wheel with some fictitious names appears. The
user can click the dot in the center of the circle and enter a list of names
(up to 60) in a dialog box, shown below:
Clicking the OK button causes the names entered to appear in the wheel, as
shown in the screenshot above. Clicking the arrow on the left causes the
wheel to spin, landing on a name, and showing a dialog box with the winner:
Presuma... (more)
James Weaver’s JavaFX Blog
For me, JavaOne 2008 was enlightening, exhilarating and exhausting. It was
great meeting colleagues that I had only known via email and JavaFX mailing
lists. I'd like to especially thank all who suffered through my JavaFX
University and technical sessions :-)
There were several JavaFX-related announcements and demos at JavaOne, not the
least of which is the preview release of the JavaFX SDK due in June 2008.
As the interpreted version of JavaFX was the prototype for the compiled
version, the javafx.ui classes are the prototype for the javafx.gui... (more)
From Jim Weaver's Learn JavaFX Weblog
One of the very useful (and cool) features of compiled JavaFX Script will be
closures. In a nutshell, JavaFX Script closures provide the ability to
define a function within another function with the inner function having
access to the local variables of the outer function. This feature is
enabled by the fact that in compiled JavaFX Script, functions are first-class
objects, which provides the ability to assign functions to variables and to
pass functions as arguments to other functions. You can read more about
closures in this Wikipedia ... (more)
From Jim Weaver's Learn JavaFX Weblog
As I've mentioned before, compiled JavaFX Script is currently under
development, and one of the last pieces of the puzzle is the UI features.
Currently there are a few UI features that are operational in the compiled
version, for example Frame, BorderPanel and Button. Fortunately, the user
interface API (widgets and 2D graphics) is almost identical to interpreted
JavaFX Script, as is the declarative scripting.
For example, this classic border layout (BorderPanel widget) example executes
in the interpreted, and compiled versions of JavaFX Scrip... (more)
To wish you Happy Holidays (and if you'll permit me, a very merry Christmas)
I wrote this Compiled JavaFX Script Applet (that executes in a browser).
For fast deployment I used the latest version of Java SE 6 Update 10
(formerly known as Java SE Update N, formerly known as Consumer JRE, formerly
known as Prince :-D). I also used the latest beta version of Firefox
(Minefield 3.0 beta), as this is necessary if you want to use the Java SE
Update 10 browser plug-in with Firefox. Check out this video blog by Robert
Eckstein for some great information about Java SE Update 10.
The Java... (more)