RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

Harshitha Onkar duke at openjdk.java.net
Mon May 16 17:14:41 UTC 2022


On Fri, 13 May 2022 22:09:08 GMT, Phil Race <prr at openjdk.org> wrote:

>> test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java line 73:
>> 
>>> 71:             System.out.println("SystemTray is not supported");
>>> 72:             return;
>>> 73:         }
>> 
>> This should be the first statement in main. If icons aren't supported, there's no need to create the instruction frame. The test will still wait for user's response but no tray icon is added.
>
>> This should be the first statement in main. If icons aren't supported, there's no need to create the instruction frame. The test will still wait for user's response but no tray icon is added.
> 
> It won't wait if you haven't created it .. it will just exit without showing anything and be counted as pass, that's probably OK.

Added the **!SystemTray.isSupported()** check as first line in main(). In case the system tray is not supported, the test is counted as pass and does not proceed to display instruction frame.

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

PR: https://git.openjdk.java.net/jdk/pull/8441



More information about the client-libs-dev mailing list