On Fri, 6 Sep 2024 06:26:50 GMT, Abhishek Kumar <abhis...@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

Reply via email to