RFR: 8226933: [TEST_BUG]GTK L&F: There is no swatches or RGB tab in JColorChooser
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Sep 6 06:46:49 UTC 2024
On Fri, 6 Sep 2024 06:26:50 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
>> test/jdk/javax/swing/JColorChooser/Test4887836.java line 45:
>>
>>> 43: then test passed, otherwise it failed.
>>> 44:
>>> 45: NOTE: There is no Swatches tab for GTK Look and Feel, Press Pass.""";
>>
>> I guess better to restrict programmatically
>> "GTK".equals(UIManager.getLookAndFeel().getName())
>> Also, add a comment why it is not applicable..
>
>> I guess better to restrict programmatically "GTK".equals(UIManager.getLookAndFeel().getName()) Also, add a comment why it is not applicable..
>
> For a manual test, it can be run by command line with `Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel` option. How could I restrict programmatically ?
Whatever L&F you are running on irrespective of manually or automated, it should be able to find out via getLookAndFeel..
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20867#discussion_r1746588110
More information about the client-libs-dev
mailing list