created (with Applets): 03/07/1998; revised: 07/15/2002, 08/18/2003, 11/02/2003, 02/11/2006, 12/03/2010, (Applets removed): 06/27/2016 ; (JavaFX): 05/07/2018

go to home page   go to next page highlighting

CHAPTER 120 — Beginning JavaFX Graphics

This chapter explains how to use JavaFX to draw simple pictures.

JavaFX is a collection of packages for writing graphics applications. It replaces older Java graphics packages and should be used for all new projects. JavaFX comes as part of the Java Development Kit 8 (JDK 8) and following.

With JavaFX you can create a window (called a Stage), and put a Scene containing geometrical shapes into it. The geometrical shapes can be lines, ovals, rectangles, and other shapes. You can pick the colors for the border and area of the shapes.

JavaFX is really big. This and the next chapters only cover a small part of it. User interaction (with buttons and mouse movements) is not covered until later.

Chapter Topics:


QUESTION 1:

In computer programming, what is a window?


go to home page   go to next page