JavaFX automatically includes Cascading Style Sheets (CSS). This provides us with the ability to apply custom styling to the user interface of a JavaFX application without changing any of that application's source code. CSS can be applied to any node in the JavaFX scene graph and are applied to the nodes asynchronously. JavaFX CSS styles can also be easily assigned to the scene at runtime, allowing an application's appearance to dynamically change.
- [Voiceover] CSS stands for Cascading Style Sheets.…Those of you that have done any HTML programming,…you probably know how to use…a Cascading Style Sheet already.…One of the nice things is that JavaFX…automatically includes Cascading Style Sheets support.…You may not even have realized this,…but JavaFX automatically added a Cascading Style Sheet…to all of our programs that we've been doing so far.…By using CSS,…it allows us…to custom style the user interface of a JavaFX application,…without changing any of the application source code.…
It separates the style from the business logic.…CSS can be applied to any node in the JavaFX scene graph,…and…are applied to the nodes asynchronously.…JavaFX CSS styles can be easily assigned…to the scene at runtime, allowing…an application's appearance to change dynamically.…It is helpful to create a theme that can be used…for all scenes in your application.…This provides the user with the consistent look and feel.…That's another benefit of CSS themes.…
With the recent release of Java 8,…
- What is JavaFX?
- Creating a simple JavaFX program
- Drawing lines, shapes, and text
- Applying effects
- Adding and animating images and charts
- Customizing interfaces with CSS
Skill Level Intermediate
1. Get Started with JavaFX
2. Sample Applications
4. User Interface Components
6. Custom UIs
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.