Readers of this blog know that I like to hold contests to make things fun and encourage participation (e.g. see the 2000 USD JavaFXpert RIA Exemplar Challenge that ends 10 January, 2010). In keeping with that sentiment, some JavaFX questions relevant to my presentation will be tweeted by @projavafxcourse to the twitterverse during the Øredev 2009 RIA Enterprise Application Developing with JavaFX session.
The seven people that earn the highest scores by tweeting fast, correct, answers to these questions will each win a copy of the Pro JavaFX book. Six of these books will be composed of bits (e-books), and one will be composed of atoms. The atom-based book is reserved for the person with the highest score of those present in the audience, but the e-books will be awarded (via an emailed Apress coupon) to the winners regardless on their location during the session. This session starts on Friday, November 6 at 3:35pm CET, lasting until 4:25pm, so please have your Twitter client ready. When you tweet an answer, be sure to reply to the original tweet with your answer.
On a technical note, all correct answers consist of one word or character, and the software that checks for a correct answer trims the spaces from the end of the reply and then uses the string found between the final space and the end of the reply. So, if you want to put other words in your reply, presumably to give your followers a clue about what your terse message is, just make sure that your answer is at the end of your response. For example, you might reply to the question:
The name of the layout class that arranges UI nodes horizontally is ____
with this message:
Answering a JavaFXpert presentation question with HBox
If you want to use an application that I'm developing for the purpose of responding to these questions, please make sure that you have a recent version (update 14 or later) of Java SE 6 and click the LearnFX icon over on the left.
When the application starts up, the most recent question is displayed as shown in the screenshot below. If the question is still active (i.e. the answer has not been revealed), then the text box will be enabled, allowing you to enter an answer and click the Send button or press the Enter key. Responses that have been received appear as well, along with the the Twitter profile image, screen name, and indication of whether the question is correct (if the answer has been revealed -- if not, a question mark will be displayed).
The first time that you run the application, you'll need to click the configuration icon to open the configuration dialog shown below, in which you can enter your Twitter screen name and password, as well as some preferences. This information is stored on your local machine, and automatically loaded on subsequent invocations of the application.
Until the contest begins, there is a sample question available if you wish to give this application a try before the real questions begin appearing. By the way, when you use the LearnFX client, your tweet is a reply to the projavafxcourse user, and the message contains the following with the question ID, and answer that you supply, added to the end:
@projavafxcourse Answering JavaFXpert question http://bit.ly/2dn1kK
The bit.ly link in the message may be clicked by your followers to see what your strange tweet is about :-)
There is a WidgetFX version of this application in the works that I'll release and blog about in a subsequent post. By the way, I'd like to publicly thank Steven Herod for the Twitter API this application uses, which he donated to the open source JFXtras project.
Regards, and good luck! Please leave a comment if you have any questions,
Jim Weaver
Hi James Weaver,
I am new to JavaFX. our requirement is how to embed JavaFX charts in a Java Web Application.To be precise,How to use JavaFX charts in a web based Business Intelligence(BI) report/dashboard.I was trying to achieve since last 3days.Any help will be appreciated.
Thanks in advance
Posted by: Uday | November 14, 2009 at 01:09 AM