James L. Weaver

Subscribe to James L. Weaver: eMailAlertsEmail Alerts
Get James L. Weaver: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by James L. Weaver

From Jim Weaver's Learn JavaFX Weblog There are several environments in which you can develop and run JavaFX Script programs. I’d like to help you become a JavaFX Script programmer in the next few minutes, so I’m going to show you the fastest route that I know of to get there, which includes using a tool that Sun created called JavaFXPad. You’ll need the Java Runtime Environment (JRE) 1.5 or higher (Mac OS requires the latest JRE 1.5 release or JRE 1.6) Run JavaFXPad straight from the Internet by accessing the following URL: http://download.java.net/general/openjfx/demos/javafxpad.jnlp. This will launch JavaFXPad via Java Web Start, which is a Java application deployment technology. Each time you access this URL it will check for the latest version of JavaFXPad, download it, and automatically execute it. Cut and paste the following code into Jav... (more)

Developing Your First Compiled JavaFX Script Program

From Jim Weaver's Learn JavaFX Weblog The next JavaFX Puzzler will be posted at 18:00 GMT (1:00PM EST) on Wednesday, November 28, 2007.  It will be a compiled JavaFX Script puzzler, so you'll need to build the JavaFX Script Compiler in order to participate in the Puzzler. To help prepare you for the Puzzler, I'd like to you to develop a very basic "Hello World" style program. After you've built the compiler, please copy and paste the following code into a file with the FX extension.  I chose CompiledHelloJavaFX.fx for my filename: /* *  CompiledHelloJavaFX.fx - A Hello World * s... (more)

A Compiled JavaFX Script Example: Spinning Wheel Got to Go 'Round

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... (more)

Closures in Compiled JavaFX Script

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)

JFX and the Way Forward After JavaOne 2008

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)