© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. Sharan, P. SpäthLearn JavaFX 17https://doi.org/10.1007/978-1-4842-7848-2_6

6. Understanding Nodes

Kishori Sharan1   and Peter Späth2
(1)
Montgomery, AL, USA
(2)
Leipzig, Sachsen, Germany
 
In this chapter, you will learn:
  • What a node is in JavaFX

  • About the Cartesian coordinate system

  • About the bounds and bounding box of nodes

  • How to set the size of a node and how to position a node

  • How to store user data in a node

  • What a managed node is

  • How to transform node’s bounds between coordinate spaces

The examples of this chapter lie in the com.jdojo.node package. In order for them to work, you must add a corresponding line to the module-info.java file:
...
opens com.jdojo.node ...

Get Learn JavaFX 17: Building User Experience and Interfaces with Java 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.