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

Kevin Rushforth kcr at openjdk.org
Mon Nov 3 17:47:40 UTC 2025


On Wed, 29 Oct 2025 15:10:43 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:

> Added new method `setSquareSize(double size)` to be able to customize the size of squares in `ColorPalette` which was previously hardcoded with a value 15

Since this PR adds public API, it will need a CSR. And the new public methods will need API docs.

You will also need to automated tests.

> Question: should we make it a styleable property instead, so the application can configure it with CSS?

Yes, I think this would be best.

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

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


More information about the openjfx-dev mailing list