Custom Nodes and Subclassing
Key Skills & Concepts
• Subclassing Node
• Creating a custom node
• Overriding default Node methods
JavaFX comes with many great tools. Throughout this book you have learned about shapes, effects, and methods—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 what you need from JavaFX: You can always make a node that does exactly what you need. This can be by subclassing an existing node or by creating an entirely new one. In ...