There are images that lie in the HBox . When you hover the mouse, the method that around the HBox draws the frame hbox.setStyle("-fx-border-width: 2pt; -fx-border-color: red") . How to make that the frame was drawn not, and it was simply underlined HBox ?

    1 answer 1

    To achieve the underscore effect, you only need to specify the width of the bottom frame for the HBox : -fx-border-width: 0px 0px 2px 0px;

    Source: https://stackoverflow.com/a/10329951/2506123