For the text in a JavaFX ComboBox, I’d like the font to be san-serif, and with variable spacing, not fixed spacing. I’d also prefer the items centered in the display area rather than left-aligned.
I’m having difficulty figuring out how to do this. I’ve gotten as far as using the method .setStyle(), and creating a style string that uses “-fx-font-family:san serif;” but haven’t been able to find an API or guide to the various properties that are exposed.
Anyone have a link or know how to do this?