O'Reilly logo

JavaFX 1.2 Application Development Cookbook by Vladimir Vivien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a custom JavaFX control

In previous recipes in this chapter, we have used the standard JavaFX controls to create application GUIs. Inevitably, you will have an idea for a component with specific behaviors and usage not offered by the standard set of controls. What do you do? Fortunately, creating your own control is as easy as creating a new class. In this recipe, you will learn how to create your own reusable GUI control.

Getting ready

As mentioned in the introduction for this recipe, creating a custom control is as easy as creating a new class. If you are not familiar with the topic of class creation and issues with accessibility and visibility of class members, review the recipes Declaring and using JavaFX classes from Chapter 1, Creating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required