Why does Skin have getNode method instead of getControl?

Alex Sviridov ooo_saturn7 at mail.ru
Fri May 3 13:09:58 UTC 2019

Hi all,

In my previous message I asked why GridPane, HBox, BorderPane, VBox, StackPane 
don't have Skins. I was told that it is odd for them to have Skins ( Kevin Rushforth )
and only controls can have skins. 

I pointed, that every Node can have a Skin, but got no answer.

Now I am reading Skin API and see there the following method:

Node     getNode()      Gets the Node which represents this Skin.

The Skinnable interface is implemented by the Control class, and therefore is implemented
by all Control implementations.

So, could anyone explain why in Skin we have `Node getNode()` but not `Control getControl()`.

Alex Sviridov

More information about the openjfx-dev mailing list