/*
* file : DecoratedFrame.fx
* http://babukuma.com
*/
package test.javafx;
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
Frame {
title: "DecoratedFrame"
width: 300
height: 200
background: green
centerOnScreen: true
content: SimpleLabel{
horizontalAlignment: CENTER
text: "Decorated Frame"
}
visible: true
}

ご覧のように簡単に作れる。
でも普通のタイトルバーを消して自分のみのきれいな(?)ウィンドウを作る方法。
「undecorated」属性を「true」にすればできる。
でも、undecoratedになると
今まで簡単にできた、ウィンドウの移動、サイズ変更などができなくなるので、
自分で作って付ける必要が出て来る。
/*
* file : UndecoratedFrame.fx
* http://babukuma.com
*/
package test.javafx;
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
Frame {
title: "UndecoratedFrame"
width: 300
height: 200
background: green
centerOnScreen: true
undecorated: true
content: SimpleLabel{
horizontalAlignment: CENTER
text: "Undecorated Frame"
}
visible: true
}
