younes zeboudj
younes zeboudj

Reputation: 924

javafx spinner hide arrows

How can I hide arrows of a spinner on JAJAFX?

I tried to set the style of the spinner to :

.increment-arrow-button .increment-arrow { -fx-padding: 0;}

.decrement-arrow-button .decrement-arrow { -fx-padding: 0;}

and

.spinner .increment-arrow-button .increment-arrow { -fx-padding: 0;} 
.spinner .decrement-arrow-button .decrement-arrow { -fx-padding: 0;}

using spinner.setStyle("..."); but without results

Thanks in advance

Upvotes: 0

Views: 591

Answers (1)

younes zeboudj
younes zeboudj

Reputation: 924

I have solved the problem without using Style, what worked for me is this :

spinner.getStyleClass().clear();

Upvotes: 1

Related Questions