Chapter 1

Hello, JavaFX!


check Getting a quick overview of what JavaFX is and what you can do with it

check Looking at a basic JavaFX program

check Importing the classes you need to create a JavaFX program

check Creating a class that extends the JavaFX Application class

check Using classes such as Button, BorderPane, and Scene to create a user interface

check Creating an event handler that will be called when the user clicks a button

check Examining an enhanced version of the Click Me program

Up to this point in this book, all the programs are console-based, like something right out of the 1980s. Console-based Java programs have their place, especially when you're just starting with Java. But eventually you’ll want to create programs that work with a graphical user interface (GUI).

This chapter gets you started ...

Get Java All-in-One For Dummies, 6th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.