My system tray is at the bottom of the screen, as usual, but when I click it the TrayApp window opens aligned to the top of the screen instead of to the bottom where the tray icon is.
Looking into the debugger, I think the issue is that in getTrayWindowPosition(), the screenSize value is incorrect. That's because Toolkit.getDefaultToolkit().screenSize returns the size of the primary display, but that's not where my system tray is (I have 3 displays, and the one with my system tray is smaller than the primary one).