The JavaFX colour picker is rather neat, but it always seems to display the text representation of the colour, as well as the colour itself:
I'd like it without the text, just with the colour square, but can't seem to find a method to style it this way. The only thing that's come close I've tried so far is to restrict the width of the control so the text can't be shown:
picker.setMaxWidth(30);
...but that seems incredibly hacky, and still produces a "..." to the side of the button where the text has been trimmed off:
Any ideas?
Try
colorpicker.setStyle("-fx-color-label-visible: false ;");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With