Java screen glitch
My Mac is currently running OS Catalina (10.15.4), although I've had the same problem with the previous MacOS. Java is also up to date (Version 8 Update 241)
Whenever I launch the java menu within the System Preferences, the whole screen starts to glitch uncontrollably (screenshoot below). The same problem also happen with any other software that uses Java (i.e. PokerStars). What's interesting is that even when I uninstall Java and try to open the PokerStars, or any other that I believe uses Java, the same problem happens.
I've already trying uninstalling Java with the Java Software provided by the website and then reinstalling, but had no luck. I've also tried to twitch some options in the Java menu, but nothing seems to change.
Any suggestion would be appreciated.
MacBook Pro Retina