Same issue here, Windows 11 and installed latest Java 8 (JRE) and JDK 22. I also have some Javas within my Unity packages, not sure if it affects it too. Google Play Games for PC gets the same color glitches as Java panel.
Edit: turns out it was actually Nvidia RTX Vibrance ON. Some apps like Google Play Games or Java Panel don't like that setting... Turning it off fixed the issue.