This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Can JavaFX be used in place of Swing ?

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
 
He does not suffer fools gladly. But this tiny ad does:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic