O'Reilly logo

Java All-in-One For Dummies, 5th Edition by Doug Lowe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1

Hello, JavaFX!

IN THIS CHAPTER

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 Create 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required