When using IntelliJ this issue can be solved by disabling XRender.

You can do this with the flag

 

-Dsun.java2d.xrender=false

 

Simply add this to the <IDEA_HOME>/bin/idea.vmoptions and it works.

 

Maybe this thread also helps:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206240979-intellij-10-5-with-xrender-JDK-1-7-enabled?page=1#community_comment_206528075