Java Reference
In-Depth Information
Listing 9-2. The First Version of the Style Sheet Used by the Applications in This Chapter
.root {
-fx-base: #606060;
-fx-background-color: radial-gradient(center 50% 50%, radius 60%,
#666a6b, #2b2f32);
-fx-background-image: url("resources/cross.png");
-fx-background-position: left top;
}
.button {
-fx-text-fill: #E0E0E0;
-fx-font-size: 20pt;
-fx-pref-width: 300px;
}
.label {
-fx-text-fill: #E0E0E0;
}
#clipLabel {
-fx-font-size: 24pt;
}
.hyperlink {
-fx-text-fill: #808080;
}
Figure 9-1 shows how this simple AudioClip example should look when it is running. A new playback of the
AudioClip is started each time the button is clicked. If you're very quick, you might get two or three playing at a time.
Figure 9-1. The BasicAudioClip application
 
Search WWH ::




Custom Search