Key Skills & Concepts
• Implementing Node
• Creating a custom node
• Overriding default Node properties
JavaFX comes with many great tools. Throughout this book you have learned about shapes, effects, and swing components—to name a few. However, what if you find that the nodes in JavaFX do not quite fit what you need? There is another way to get exactly what you need from JavaFX: You can always make a node that does exactly what you need. This can be by overriding an existing node or by creating an entirely new one. In this chapter you learn about both methods for getting precisely what you need out of JavaFX.
First, let’s discuss overriding an existing node.
Before you can learn about overriding ...