I have noticed that if I create a skin which adds a label like this
public MySkin(MyControl control) {
super(control);
pane.getChildren().add(label);
getChildren().add(pane);
}
the label is actually added twice in my application. I
Hi Randahl,
you should override your Skin's dispose() method that removes the label.
Possible reasons I can imagine why JavaFX does not clear the child list itself:
1. The control could have some children on it's own, which shouldn't
be deleted when applying a skin. This will be the case for a