24. Using Swing Controls

If you are a Swing developer, you will probably be pleased to know that JavaFX enables you to continue to use Swing components, provided that you don’t mind being limited to platforms that support the JavaFX desktop profile. The javafx.ext.swing package, which is the subject of this chapter, contains classes that are JavaFX wrappers for a subset of the Swing component set. At the time of this writing, only a small number of components are available, and it is unlikely that more will be added because the emphasis is now on creating native JavaFX controls. As you’ll see at the end of this chapter, it is also possible to create your own Swing wrappers, which is useful if you need to use some of the standard components that ...

Get JavaFX™ Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.