It’s been a while since I’ve worked on JMetro.
This time a control that’s not part of the windows framework: the spinner.
I opted to style the control in its STYLE_CLASS_SPLIT_ARROWS_HORIZONTAL style, that is horizontal arrows split between left and right sides. To style the control you need to add the style you want to the StyleClass observable list:
spinner.getStyleClass().add(Spinner.STYLE_CLASS_SPLIT_ARROWS_HORIZONTAL);
the other possible styles are:
STYLE_CLASS_ARROWS_ON_LEFT_HORIZONTAL STYLE_CLASS_ARROWS_ON_LEFT_VERTICAL STYLE_CLASS_ARROWS_ON_RIGHT_HORIZONTAL STYLE_CLASS_SPLIT_ARROWS_VERTICAL
And here are the controls in their light and dark theme:
As always you can get this at jfxtras.
Muito bom! tenho uma pergunta: como faço para a janela ficar nesse estilo (sem decoração)?
Obrigado Fernando.
O estilo da janela vem do windows 10.
Cumps,