RFR: 8358023: javafx.scene.control.ColorPicker configure size of squares in color pallet

Andy Goryachev angorya at openjdk.org
Mon Nov 3 18:10:30 UTC 2025


On Mon, 3 Nov 2025 17:50:36 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

> Then I noticed that the class in question, `ColorPalette.java`, is not a public class.

Yes some of its styleable properties are present in modena.css and caspian.css - like `color-picker-grid` selector for instance.  It is not, however, specified in the CSS reference at all (even though the skin itself, `ColorPickerSkin` is a public class).  So if one wants to provide a custom ColorPicker skin, there is no middle ground - either use the stock implementation with a limited range of customization, or create your own.  This is the kind of difficulties one finds working with JavaFX - it's extremely difficult to extend.

So adding (an undocumented) styleable property to `ColorPalette.java` might solve the issue described in the ticket, without requiring a CSR since no public APIs are introduced, right?

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1954#issuecomment-3481852465


More information about the openjfx-dev mailing list