0

I'm facing this problem usin tilesfx: I'm trying to reduce the distance between the tiles "frame" (the area of background visible between my node and the "border") and the inner object that is a JavaFX node with my content

var n = MyNode("This is my node content");
n.setW(412);
n.setH(610);
n.setTitle("Node Title");
Tile tile = 
TileBuilder.create()
           .skinType(SkinType.CUSTOM)
           .prefSize(n.getW(), n.getH())
           .textVisible(false).graphic(n).value(0)
//         .borderColor(Color.BLUE).borderWidth(3)
           .title(n.getTitle())
           .titleAlignment(TextAlignment.CENTER)
           .animated(true)
           .build();

Here is a picture of the value I'd like to shrink

picture

Note, I also tried setting insets with tile.setPadding(new Insets(1.0,1.0,1.0,1.0)); but still no effect

DDS
  • 2,340
  • 16
  • 34

0 Answers0