Chapter 11Custom Nodes and Overriding
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.
Overriding a Node
Before you can learn about overriding ...
Get JavaFX A Beginners Guide 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.