Skip to main content

An introduction to JavaFX

Hello friends,

After a long time, i am come with a very interesting topic named JavaFX. 

Your first question may be:-
  1. What is JavaFX.
  2. What is purpose, means why we know about this.
  3. How to learn/develop JavaFX application.
No problem, we are going to cover these things step by step.

What is JavaFX :-

      If your know about java then you must aware about Java's Collection API, which provide an ease to use List, Queue, Map and a lot more. This basically deals with data management. Same as, JavaFX is an API which deals with design and development of Desktop applications as well as Rich Internet Applications(RIAs).
You may have one query 'We do this using Swing too'. Yes you do. In simple term, JavaFX is an advance version of Swing with most other powerful features.

What original document says about JavaFX -


'JavaFX is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.'


The first build of JavaFX was released on 4th December 2008. And last stable build was on 18th March 2014(At time of writing this post). To know more about release history of JavaFX and versions, go to this wikipedia link.



Why we know about JavaFX :- 

      JavaFX enables you to creating desktop applications with rich design in simple way. There is very easy to styling your application when you go via JavaFX for your desktop application.

What original document says about the KEY Features of JavaFX -
  • Java APIs
  • Swing inter-operability
  • FXML and Scene Builder.
  • WebView
  • Built-in UI controls and CSS
  • Canvas APIs
  • Multi-touch support and mush more.
What very best i feel in JavaFX APIs is, you can use near about all script based language and CSS as your need in your JavaFX applicationGo to this link for more details about key features of JavaFX. 

How to learn/develop JavaFX application :-

    There is a lot of resources/sites which have cover the topic of JavaFX where you can learn JavaFX basics and of-course my blog for best examples ;). I will cover some basic example which will make you a good understanding to JavaFX.

If you are familiar with Android apps development, then you will find that development of JavaFX application is same like that but in little different way.

To develop a JavaFX application, you are very much required an IDE like Eclipse, NetBeans, IntelliJ.

I recommend you to use IntelliJ IDEA for the development of JavaFX applications. You can download a community edition of IntelliJ from this official link which is free.

I recommend you to not waste of time in learning theory/definition content of JavaFX, Just go for practice/development. You can learn things much better when you start coding about this.

According to me, there are two basic way to create a desktop application using JavaFX -
  • With pure Java coding.
  • Using FXML for design and Java for logic.
In next tutorial, I will explain a Simple Entry Form example using both this ways.

Suggestions are most welcome. Please keep reading my blog and share to your friends :)

Thanks for visiting me)



Comments

Popular posts from this blog

Working with MPAndroidChart (how to create Bar Chart using MPAndroidChart)

Hi Friends, In this tutorial i am going to show, "How to create Bar Chart using MPAndroidChart". There is a lot of libraries for creating charts in android like AChartEngine, MpAndroidChart, AndroidPlot etc. Your first question may be, Why MPAndroidChart. So MpAndroidChart provides better animation functionality and easy to use in comparision. Using  MPAndroidChart library  we can draw a: ·          Simple Bar Chart ·          Grouped Bar Chart ·          Horizontal Bar Chart ·          Simple Line Chart ·          Line Chart with Cubic Lines ·          Grouped Line Chart ·          Combined Line and Bar Chart ·          Pie Chart ·          Scatter Chart ·          Candlestick Chart ·          Radar Chart Here we will create Simple Bar Chart with multiple color based on ranging. Ok We start with coding part now. First of all create your project in Android Studio and add gradle dependency for  MPAndroidChart library  into y

JavaFX WebView- Creating Browser Sample

Hi Friends, In this post, i am going to give an overview about JavaFX WebView . This is an embedded browser component which is based on WebKit . If allow you to use Css, JavaScript, HTML5 and more to customise your embedded browser. The embedded browser enables you to perform the following tasks in your JavaFX applications: Render HTML content from local and remote URLs Obtain Web history Execute JavaScript commands Perform upcalls from JavaScript to JavaFX Manage web pop-up windows Apply effects to the embedded browser  I am going to provide and explain you a sample example to create your embedded browser. This is a JavaFX sample example. if you want to take an introduction about JavaFX please visit my previous blog . I have use IntelliJ Idea IDE for this example. You can visit this link  to understand how to create JavaFX application. I am attaching the project structure image below- In this sample- we have two java class. First

Java Socket Basics(Socket Programming in Java) Part-2(UDP)

Hi friends, We are going to discuss about UDP Socket Programming . In previous post  we discussed about the differences between TCP & UDP and the sample example of TCP Socket Programming. Below is the sample example of chat application using UDP  Socket Programming . UDP Sample :-  We are going to create an small example which contains two classes. UdpServer.java:-  This is a server class. Means this class will serve the purpose of socket connection. DatagramSocket is the java class and serve the purpose of Server and Client both. The overloaded constructor of DatagramSocket class matters. DatagramPacket is the java class which is responsible to transmit the data/packet over the network from server to client and vice-versa. UdpClient.java:-  This is client class. This serves the purpose of client which will communicate to server and send data to server and receive the data sent by server. UdpServer.java import java.net.DatagramPacket ; import java.net.Datag