From the course: Learning JavaFX GUI Development

Unlock the full course today

Join today to access over 23,100 courses taught by industry experts.

Add controls to the user interface

Add controls to the user interface

From the course: Learning JavaFX GUI Development

Add controls to the user interface

- [Voiceover] Applications would be pretty boring if they didn't have any type of User Interface Controls. A complete list of all the UI Controls for JavaFX can be found in the Oracle Java doc for JavaFX.scene.control API. UI or User Interface controls are built using nodes in the scene graph. Remember, it is possible to add style to these controls using CSS, or embedding the style directly into your code. UI Controls allow you to interact with the end user. The interaction is handled through event handlers. Some of the most commonly used controls include Labels, Buttons, Checkboxes, TextFields, where the user enter in text, PasswordFields, and the list goes on. Let's switch to NetBeans. I have a program that I'd like to show you. Here is a program that I use to demonstrate the look of several of these controls. The styling for each control was handled using CSS. Let's run the program first, then we'll come back, and take a closer look at the controls. As you can see, I'm using a grid…

Contents