| Author |
Can JavaFX be used in place of Swing ?
|
Ibn Saeed
Ranch Hand
Joined: Jun 17, 2009
Posts: 45
|
|
Hello
I would like to know if JavaFX can be used in place of Swing? or can it act as a replacement for Swing in Desktop development ?
Or is JavaFX best for Web Development similar to Flash and Silverlight
|
 |
Paul L Anderson
Author
Greenhorn
Joined: Jul 07, 2009
Posts: 5
|
|
JavaFX can be used in place of Swing, but it's is not meant to be a replacement for the Swing technology. For simple GUI apps, JavaFX lets you develop quickly, you don't have to write as much code as you do with Swing, and the end result can enrich the user experience.
Check out Order Your Pizza
http://www.asgteach.com/javafx/orderpizza_launch.htm
from our Essential JavaFX book, which shows how JavaFX bindings simplify the integration of UI components into applications.
|
 |
Ibn Saeed
Ranch Hand
Joined: Jun 17, 2009
Posts: 45
|
|
Paul L Anderson wrote:JavaFX can be used in place of Swing, but it's is not meant to be a replacement for the Swing technology. For simple GUI apps, JavaFX lets you develop quickly, you don't have to write as much code as you do with Swing, and the end result can enrich the user experience.
Check out Order Your Pizza
http://www.asgteach.com/javafx/orderpizza_launch.htm
from our Essential JavaFX book, which shows how JavaFX bindings simplify the integration of UI components into applications.
So it is possible to develop a full fledge windows desktop application in JavaFX (acting as a frontend), which could interact with an online website developed in PHP+MySQL (acting as backend)?
As i am only interested in developing desktop application, and not any web application. So can JavaFX, developing in it being easier than Swing, be used solely for the development of Desktop Applications ?
|
 |
Paul L Anderson
Author
Greenhorn
Joined: Jul 07, 2009
Posts: 5
|
|
I would say yes. A JavaFX program can access and use any Java API, so you could use JavaFX as a front end to other back-end services. If you have access to your PHP+MySQL website from Java, you can use it from JavaFX.
The binding mechanism in JavaFX makes working with GUI components easier than implementing interfaces with Swing. So you can develop faster and write less code.
|
 |
Ibn Saeed
Ranch Hand
Joined: Jun 17, 2009
Posts: 45
|
|
Paul L Anderson wrote:I would say yes. A JavaFX program can access and use any Java API, so you could use JavaFX as a front end to other back-end services. If you have access to your PHP+MySQL website from Java, you can use it from JavaFX.
The binding mechanism in JavaFX makes working with GUI components easier than implementing interfaces with Swing. So you can develop faster and write less code.
This is quite exciting. I was actually looking to develop a GUI application for my Online PHP Store. I wanted a frontend in Java through which I could CRUD the MySQL Database, in order to change the prices, add products, view orders etc.
Can you recommend a book which deals which such path ?
|
 |
Sergey Surikov
Greenhorn
Joined: Oct 18, 2007
Posts: 3
|
|
This is quite exciting. I was actually looking to develop a GUI application for my Online PHP Store. I wanted a frontend in Java through which I could CRUD the MySQL Database, in order to change the prices, add products, view orders etc.
Can you recommend a book which deals which such path ?
see JavaFX CRUD for the example
|
 |
 |
|
|
subject: Can JavaFX be used in place of Swing ?
|
|
|