var width = 400;
var height = 400;
Stage {
style: StageStyle.TRANSPARENT
onClose: function():Void {
System.exit(0);
}
scene: Scene {
content: Scribble {}
width: width
height: bind height
}
}
幅は機能するのに、高さは機能しないのはなぜですか? そして、これを修正するにはどうすればよいですか? Netbeans は次のように言っています。
高さには、javafx.scene.Scene でのスクリプトのみ (デフォルト) のバインド アクセス権があります。