First some pre-requisites:
- JavaFX Runtime Environment
- Java Runtime Environment
- JavaFX SDK
- JavaFX Scene Builder
- JavaFX IDE – I had chosen NetBeans 7 as it already has support for JavaFX.
This can all be downloaded on the Oracle Website. You may google it.
Requirement: Create a simple application that accepts (you guess it) person details (simple registration), a custom web browser and some analytics.
Technology: JavaFX and JPA
Step 1: Create the Database and Tables
Simple Database and Table, download the SQL file: here
Step 2: Create the User Interface and specify the controller
Using the JavaFX Scene Builder, create the user interface.
Step 3: Development
Code the App!
NetBeans has its support for JPA – so I used it to interact with the database.
Download the source: here
Its basically a very simple application, but I think this sample will give you a brief introduction or a head start on how to actually develop an application using the platform.
Not a bad alternative if you want to create Desktop Applications, which of course, .net offers much better solution. Though the main take away here is that JavaFX redefines Java Desktop Application Development – flexible enough to support the best of both worlds (Desktop and Web) and if thats not enough, it also supports mobile phones.
Author David Gassner explores Java SE (Standard Edition), the language used to build mobile apps for Android devices, enterprise server applications, and more!
The course demonstrates how to install both Java and the Eclipse IDE and dives into the particulars of programming. The course also explains the fundamentals of Java, from creating simple variables, assigning values, and declaring methods to working with strings, arrays, and subclasses; reading and writing to text files; and implementing object oriented programming concepts. Exercise files are included with the course.