Chapter 1
Hello, JavaFX!
IN THIS CHAPTER
Getting a quick overview of what JavaFX is and what you can do with it
Looking at a basic JavaFX program
Importing the classes you need to create a JavaFX program
Creating a class that extends the JavaFX Application class
Using classes such as Button, BorderPane, and Scene to create a user interface
Create an event handler that will be called when the user clicks a button
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, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.