| By James L. Weaver | Article Rating: |
|
| November 28, 2007 01:00 PM EST | Reads: |
4,077 |
From Jim Weaver's Learn JavaFX Weblog
As I mentioned in my post a week ago, this JavaFX Puzzler will require writing a compiled JavaFX Script program. In subsequent posts on my Learning JavaFX weblog, I've provided instructions for using the OpenJFX Compiler to compile a JavaFX Script program into Java bytecode, and to run the program. If you haven't seen these posts, please review them first.
The first person to post a comment with a correct solution will be given a free JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications eBook (PDF download). When submitting your answer, be sure to put your correct email address in the "Email Address: (Not displayed with comment.)" text field on the comment form so that I can contact you with the information to obtain your free eBook. 
Requirements for Puzzler 4: The Puzzler4Compiled Program
Here is the console output of the sample solution:
changingText was replaced with Hello
The requirements for this program are as follows:
- The console output must be the same as shown above
- The program must define a class named Puzzler4Compiled that has an attribute named changingText that is of type String.
- The changingText attribute must have an on replace trigger that prints "changingText was replaced with" followed by the new value of the changingText attribute.
- An instance of the Puzzler4Compiled class must be created, setting the value of the changingText attribute to "Hello". This causes the trigger to be executed, and the output shown above to be printed on the console.
Have fun with this JavaFX Puzzler!
Published November 28, 2007 Reads 4,077
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By James L. Weaver
James L. (Jim) Weaver is founder and president of jMentor, formed in 2000 to provide Java programming-related training to companies and individuals. He has served as a system architect and developer for over 25 years, specializing in leading-edge software development. His specialties include Java, object-oriented, and web-based technologies. He has authored books on the Java programming language, including most recently JavaFX Script, published by Apress.
- Kindle 2 vs Nook
- Is Cloud Computing Like Teenage Sex?
- GovIT Expo Highlights Cloud Computing
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Cloud Computing Can Revitalize Your Career as Software Developer
- Ubuntu-based Open Source Linux Mint Tests KDE Version
- Yahoo! SVP Shelton Shugar to Discuss Innovation at Cloud Computing Expo
- Virtualization Journal "Readers' Choice Awards" Voting Is Now Open
- Einstein, Sharks and Clouds: IT Security in the Cloud
- Adobe Flex Developer Earns $100K in New York City
- Amazon Web Services Database in the Cloud
- Virtualization Expo Call for Papers Deadline December 15
- Kindle 2 vs Nook
- Cloud CEOs, CTOs & SVPs to Speak at 4th International Cloud Computing Expo
- Is Cloud Computing Like Teenage Sex?
- 1st Annual GovIT Expo: Letter from the Technical Chair
- Ulitzer News: Search vs New Media
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Confessions of a Ulitzer Addict
- GovIT Expo Highlights Cloud Computing
- Twitter, Linked In, Ning and Ulitzer: Easy Personal Branding Strategy
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- The i-Technology Right Stuff
- Linux.SYS-CON.com Exclusive: Linus Discloses *Real* Fathers of Linux
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- Linus' Top Ten SCO Barbs
- A Closer Look at Damn Small Linux
- Netscape Co-Founder's 12 Reasons for Growth of Open Source
- Introducing "Cooperative Linux" - Linux for Windows, No Less
- *POINT - COUNTERPOINT SPECIAL* What's Wrong with the Open Source Community?
- Where Are RIA Technologies Headed in 2008?
- Linux.SYS-CON.com Exclusive: What Would UserLinux Look Like?
- i-Technology Viewpoint: The New Paradigm of IT Buying
- Is Linux Desktop-Ready Yet...or Not?






























