Radhika

http://blogs.sun.com/radhika/date/20080115 Tuesday January 15, 2008

New NetBeans Support Blog


Recently the NetBeans Support Team has started publishing it's blog. The aim is to serve as an additional  resource for NetBeans users. The blog has lots of useful tips & tricks, issue workarounds, and product updates. 

Check out NetBeans Support Blog

Effort is also underway to translate and provide a Japanese version of the blog. This is being done by Japanese volunteers. Cheers to them !

 A note to NetBeans users seeking support:  For all technical support issues please refer to NetBeans Support Resource Page

http://blogs.sun.com/radhika/date/20070905 Wednesday September 05, 2007

A simple JavaFX application developed using NetBeans 6.0

Sun introduced JavaFX script at the 2007 JavaOne Conference. Like most engineers it peaked my interest and curiosity to try it out. I put this small sample application together fairly quickly. It is pretty easy to code once you get started. I couldn't find a simple example with both input and output components working together , and String conversion all in one example. So I decided to write this simple Temperature Conversion application in JavaFX. It is already written using NetBeans in the Java Tutorials . Here the Celsius Converter Application uses swing. This also allows to give a comparison on how things are done differently in JavaFX. A similar application is also written in JavaFX using the Spinner and Slider components. I also found the learning curve journals very useful.

To use the application, the user enters a temperature (in Celsius) into the Text field, clicks the "Convert" button. The converted temperature appears in Fahrenheit in the output Fahrenheit label field. The minimize, maximize, and close buttons behave as expected, and the application has a title that appears along the top of the window. This is exactly as per the application written in swing. If the user enters an invalid number (for example text characters etc..), a message appears in the Text field prompting the user to Enter a valid number. Note the String conversion and the exception catching in the code below.

The screen shots followed by the sample code


The JavaFX Source Code for Celsius Converter Application

Following are the references I used for JavaFX:

  • JavaFX Technology
  • The JavaFX Script Programming Language
  • Learning More About the JavaFX Script Language for Swing Programmers
  • Planet JFX

  • http://blogs.sun.com/radhika/date/20070803 Friday August 03, 2007

    Learning Java with NetBeans

    If you are a beginner Java programmer wanting to use NetBeans IDE and learn java at the same time, here are some resources which will help:


    "Hello World!" for the NetBeans IDE


    Running Tutorial Examples in NetBeans IDE


    Basic Java Programming Learning Trail


    The Java Tutorials


    I would suggest trying the first two tutorials before moving on to the learning Trail.


    Valid HTML! Valid CSS!

    This is a personal weblog, I do not speak for my employer.