RFR: 8271328: User is able to choose the color after disabling the color chooser.

Tejesh R tr at openjdk.org
Thu Sep 15 10:07:47 UTC 2022


On Thu, 15 Sep 2022 06:07:30 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

> The proposed solution for this defect is to check the color chooser enabled state. If it is disabled then disable all the components (spinner, textfield etc.) in panel and don't process the mouse event when user click on a color triangle or color wheel.

test/jdk/javax/swing/JColorChooser/TestDisabledColorChooser.java line 39:

> 37: import java.awt.Point;
> 38: import java.awt.Robot;
> 39: import javax.swing.*;

Please import only used swing components/functionalities. Can remove the generic `swing.*` import.

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

PR: https://git.openjdk.org/jdk/pull/10276



More information about the client-libs-dev mailing list