Java Reference
In-Depth Information
There are also options to set the stage style to DECORATED , UNDECORATED , or
TRANSPARENT . DECORATED is the default, and defines a stage with a solid back-
ground with platform-specific decorations. On a desktop, this would be the win-
dow border and title and the maximize, minimize, and close controls.
UNDECORATED is a solid white background with no platform specific decorations.
TRANSPARENT defines a stage with a transparent background with no decorations.
Stage {
style: StageStyle.UNDECORATED
...
}
We have already seen a DECORATED style in Figure 5.1. By setting the style to
UNDECORATED , the surrounding decoration, the border, the controls for minimize,
maximize, and close, and the title are no longer shown (see Figure 5.2). Just a
rectangular area with a white background color appears. In this example, we
added the text “JavaFX - Developing Rich Internet Applications”.
Figure 5.2
Undecorated Stage on Desktop
The TRANSPARENT style sets the window into a transparent mode without any
decorations.
Stage {
style: StageStype.TRANSPARENT
...
}
Here, there is no visible background region. Figure 5.3 shows this.
Figure 5.3
Transparent Stage on Desktop
Search WWH ::




Custom Search