I would like to remove the arrow from a single menu button by using CSS:
MenuButton menuButton = new MenuButton();
menuButton.getStyleClass().add("menuButtonWOarrow");
I found Remove arrow on JavaFX menuButton but that is taking affect on all menu buttons.
How would be the correct definition for this in CSS please?
.menuButtonWOarrow{
...
}
Edit - Thanks to James comment, this is working:
.menuButtonWOarrow > .arrow-button > .arrow {
-fx-padding: 0;
}