Many Java programs are affected when run over X2Go.
The only workaround I've found is downgrading to JDK7, where the bug
is not present.
Presumably Oracle will solve it in JDK9, but I don't have the time
to extensively test it.
Hope that helps!
Kind regards,