O'Reilly logo

JavaFX™ Developer’s Guide by Kim Topley

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

14. User Interface Basics

As you saw in Chapter 4, “A Simple JavaFX Application,” the starting point for building user interfaces in JavaFX is the javafx.stage.Stage class, which acts as a link between your application and the component that is used as the top-level container of the application when it is executed. The nature of the top-level container depends on the environment in which the application is running: On the desktop, it is a frame; in a browser, it is an applet; on a cell phone, it is a MIDlet; and on a TV device, it is an Xlet. These four containers have different application programming interfaces (APIs), so if you were writing a graphical user interface (GUI) application in Java, your code would be at least partly dependent ...

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