That was my point, you can use Graphic, but the underlying border will still be shown.
The 2 options are: use CustomNode as I had shown, or use Button but write your own Skin.
Each Control has a
skin
variable and a Skin implements
javafx.scene.control.Skin
. Each skin
in turn has a
behavior
variable,
javafx.scene.control.Behavior
.
So you could write you own skin.
Then, create the Button as:
Both options would be about the same amount of work, but the skin option
is a better design option.