aspose file tools*
The moose likes JavaFX and the fly likes JavaFX book question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX book question " Watch "JavaFX book question " New topic
Author

JavaFX book question

Shiva Gajjala
Ranch Hand

Joined: May 02, 2014
Posts: 51

Hi Hendrik Ebbers, I have few questions

1. What is JavaFX exactly . Is it used just for developing applications .How is it different from java swing or Java EE ?
2. Is it a scripting language or anything related to Data base language?
3. As it is used to develop rich internet applications (RIAs), do we need to buy any software to work on it ?
4. How does this book help me?

Thank you.
Shiva
Hendrik Ebbers
author
Ranch Hand

Joined: Jun 24, 2014
Posts: 32
    
    6
JavaFX is the replacement of Swing. SO it is an UI Toolkit for desktop application. Next to this you can develop mobile and embedded applications with it. You can't compare JavaFX with Java EE. Normally you will have a Java EE backend and a JavaFX or HTML fronted.
JavaFX isn't a scripting language. Some years ago the predecessor of JavaFX 8 was a scripting language but today JavaFX is completely based on Java. Like Swing JavaFX provides a lot of Java APIs that can be used to create applications.
You don't need to buy any software. With Java 8 JavaFX is part of the JDK and JRE and can be used in any application. Because it isn't a script language you can use any IDE (Eclipse, Netbeans, IntelliJ) to create applications with Java.
If you want to learn JavaFX and create applications with it you can find a lot of useful informations in the book. The book describes the basics of JavaFX and its core concepts. In addition it contains descriptions and examples for all basic controls of JavaFX like Buttons or tables. Next to this you will find some informations about styling (CSS) and how you can combine JavaFX with Swing or SWT.


[Mastering JavaFX 8 Controls]
Shiva Gajjala
Ranch Hand

Joined: May 02, 2014
Posts: 51

Thanks Hendrik ,

Now a days most of the projects are based on web applications rather than desktop . So I want to make use of JavaFX in web apps. As you said we can use JavaFX in the front end. Can we completely replace html, javascript , css coding and write pure java code using JavaFX API ? Can we just integrate css with JavaFX or it is already included in the API??

Regards,
Shiva
Hendrik Ebbers
author
Ranch Hand

Joined: Jun 24, 2014
Posts: 32
    
    6
As you can read in the linked post JavaFX isn't a technology to create web applications: http://www.coderanch.com/t/636267/JavaFX/java/JavaFx
The main focus of JavaFX is on desktop & embedded applications.
About your CSS question: JavaFX supports CSS and you can style any component by using CSS. The complete overview about CSS support in JavaFX can be found here: http://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html
 
jQuery in Action, 2nd edition
 
subject: JavaFX book question