Dave's Brain

Browse - Programming Tips - How can I get started with the JavaFX GUI in Eclipse?

Date: 2016oct21
Language: Java

Q.  How can I get started with the JavaFX GUI in Eclipse?

A.  JavaFX is the preferred GUI toolkit for new projects at the moment.

Create a new Java project.

Add the jar:

(Right-click on your project) > Properties > Java Build Path > Add External JARs Browse to your JRE's lib folder and select jfxrt.jar
Create a class that uses it.
(Right-click on your project) > New > Class
Google "JavaFX Hello World" and paste it into your new .java file. http://www.google.com/search?q=JavaFX+Hello+World Press the green (>) run button to compile and run your project.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.