A DESCRIPTION OF THE PROBLEM :
Hello! If you run java on HiRes display it works correctly on windows and osx but requires additional configuration to run on linux machines, which, I assume, make is a bug. If you check this article: https://wiki.archlinux.org/index.php/HiDPI you can see java understand GDK_SCALE environment variable to scale graphics in java applications. But, same java instances works prefectly fine on windows and osx bug failed (required correctly configured GDK_SCALE variable) on linux.
It can be handled manually, by creating java dbus client interface reader and assiging correct GDK_SCALE variable at runtime, but it feels a platform job. You can see how to work with dbus as simple python example https://gitlab.com/Oschowa/gnome-randr/blob/master/gnome-randr.py