From the course: Learning JavaFX GUI Development
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Apply text effects
From the course: Learning JavaFX GUI Development
Apply text effects
- [Voiceover] Using JavaFX not only lets us apply special effects to shapes and lines, but it can also be used to add some interesting look and feel to text. The JavaFX scene effect API has many new ways to add special graphical effects to text in the scene graph. The list is quite long but here are a few you have probably seen. The perspective-transform, the drop-shadow, the reflection, the gaussian-blur and even special lighting just to name a few. Let's look at an example that uses three of these. The perspective-transform, the drop-shadow and the reflection. Let's switch over to NetBeans. We'll start by creating a new project, file, new project, JavaFX application, and let's give it a name. Let's call it text effects. And click finish. We'll start by adding three lines of text to the window, then we'll apply some effects. Let me scroll down, I wanna get rid of the template code, so I'm gonna start on line 24, and I'm gonna delete all the lines, all the way down to 35. Because I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.