22. Cross-Platform Controls
The user interfaces classes you have seen so far enable you to present information to the user in the form of graphics, video, audio, or text. The only way to get user input from these classes is to handle events from the mouse or the keyboard. Although this is not difficult to do, it quickly becomes tedious. Fortunately, JavaFX has a set of controls, which are nodes that can display information to the user and, if appropriate, respond to input. If you are a Swing developer, you are already familiar with controls such as text fields, buttons, check boxes, sliders, and so on. In fact, you can include many of the Swing components in your JavaFX application by using the JavaFX Swing wrapper classes that we discuss in ...
Get JavaFX™ Developer’s 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.