Exemplo n.º 1
0
 private Node createBackground(Scene scene) {
   // application area
   Rectangle applicationArea =
       RectangleBuilder.create()
           .arcWidth(20)
           .arcHeight(20)
           .fill(Color.rgb(0, 0, 0, .80))
           .x(0)
           .y(0)
           .strokeWidth(2)
           .stroke(Color.rgb(255, 255, 255, .70))
           .build();
   applicationArea.widthProperty().bind(scene.widthProperty());
   applicationArea.heightProperty().bind(scene.heightProperty());
   return applicationArea;
 }