I have discovered a strange bug in my laptop with the display of applications compiled with Java-8 and Java-11.
The shape of the laptop, compiled with Java-11, is displayed much larger than with Java-8.
I took the example "Anchors" as a test application.
The same error happens to every application.
This is only to demonstrate that the scaling between Java 8 and Java 11 is different.
I create the setup file on my PC, and then I install the application for testing on my laptop, as my customers should do it.
My laptop has the same resolution as my PC 1920x1080. The application has a size of 1280x800. As can be seen in the screenshot, with Java 8 the application is displayed in the correct size and with Java 11 it is displayed much larger.
And when I create the exe with Java 8, the application size is displayed correctly.
My laptop has the same resolution as my PC 1920x1080. The application has a size of 1280x800. As can be seen in the screenshot, with Java 8 the application is displayed in the correct size and with Java 11 it is displayed much larger.
And when I create the exe with Java 8, the application size is displayed correctly.
Try to change the Compatibility Properties of java.exe.
Go to to your Java,exe folder and right click -> properties -> Compatibility tab -> Check the OVERRIDE HIGH DPI SCALING -> choose Scaling performed by System
Thank you very much Erel, that was the right tip.
The scaling on the PC is 100% and on the laptop it was 125%.
Now I have set the scaling on the laptop to 100% and everything is OK.
It is so that Java-8 does not cause any problems with this scaling, but Java-11 does.