• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Can JavaFX be used in place of Swing ?

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



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
 
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic