RFR: 8296653: ComboBox promptText is not displayed when the value is reset
Ambarish Rapte
arapte at openjdk.org
Thu Nov 27 06:24:02 UTC 2025
On Wed, 26 Nov 2025 16:11:52 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:
> The issue occurred because the skin marks the button cell as “empty” when the value becomes null.
> With the fix clearing the ComboBox value re-shows the prompt text.
> Tested using the code present in the bug.
Manually tested the program attached to the bug. Change fixes the bug.
Can you please try for adding a test.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/ComboBoxListViewSkin.java line 457:
> 455: if (cell == null) return true;
> 456:
> 457: // JDK-8296653
We generally don't include the bug id. Please remove.
-------------
Marked as reviewed by arapte (Reviewer).
PR Review: https://git.openjdk.org/jfx/pull/1989#pullrequestreview-3513691743
PR Review Comment: https://git.openjdk.org/jfx/pull/1989#discussion_r2567302050
More information about the openjfx-dev
mailing list