↓ Skip to main content

Custom Controls

There is nothing special about the standard Nodes included with JavaFX (mostly). If you look at their source code, you’ll see that they are mostly just plain old Java, and don’t tend to rely on hidden packages that you cannot access yourself. This means that you can create your own Nodes and they won’t be second-class citizens to the standard Nodes. You can use virtually all of the same techniques that the authors of JavaFX used to create professional screen elements that work they way that you want.

JavaFX: How to Customize Custom Controls

21 mins
Once you’ve decided extend Region to create a custom control, there are some basic things you should do to make your new control look professional and unified. Here’s how to do that.

Custom Control: Radial Menu

20 mins
How to build a radial menu in JavaFX. Maybe not the most useful idea itself, but building this custom component lets us take a look at some more complex layout challenges.

When and How to Create Custom Controls

14 mins
Creating a custom control really isn’t that hard to do. But when should you use one, and when should you just use a builder to create a layout?