官术网_书友最值得收藏!

Using Stage styles

Stage style is the way your window is decorated outside of the Scene.

You can control how Stage will look using StageStyle enum values. It can be passed to the constructor or through the initStyle() method:

// chapter1/StageStylesDemo
Stage stage = new Stage(StageStyle.UNDECORATED)
// or
stage.initStyle(StageStyle.TRANSPARENT)

See the existing options in the following figure. Note that a Windows screenshot was used here, but decorations will look different on other operating systems because they are a part of the OS user interface and not drawn by Java or JavaFX.

主站蜘蛛池模板: 宜昌市| 房产| 辛集市| 云林县| 卓资县| 南康市| 黄浦区| 瓦房店市| 玉田县| 青海省| 横山县| 五指山市| 龙岩市| 沈阳市| 湖南省| 昌邑市| 安塞县| 定南县| 汕头市| 中西区| 博爱县| 金沙县| 沅陵县| 武川县| 长子县| 新昌县| 新泰市| 彝良县| 个旧市| 唐山市| 河曲县| 镇远县| 静宁县| 香港| 马龙县| 车险| 东山县| 霍邱县| 永春县| 呼玛县| 商南县|