Skip to main content

Posts

Showing posts from January, 2018

An Example to JavaFX

Hi Friends, In previous post i was provided you an small introduction to JavaFX. Lets see an example based on JavaFX. Hope you have downloaded and setup IntelliJ Idea IDE. Note: This example is based on only java classes(Pure java Example). Setting up the JavaFX project(Gradle based) Go to File-> New-> Project and click.One popup dialog will appear. On left panel of dialog, click on gradle. On right panel you will see some check boxes. Select Java and click Next. You will asked to fill some text fields. Enter project's package name in GroupId(i.e com.coderzduniya.fxdemo). Enter project name in ArtifactId(i.e JavaFX Demo). Leave Version as it is and go to Next. Go to Next again and Finish. After doing it well your project will be created. Now right click on java folder inside src/main and go to New-> JavaFXApplication Enter the class name(i.e Main) and click OK. Now copy the following code and paste inside your start method(Method