Add manifest information to the netbeans64.exe, app64.exe, and nbexec64.exe 
executables (and their 32-bit equivalents) to tell Windows that Java supports 
HiDPI scaling, like javaw.exe already does. This enables HiDPI support on 
Windows, without needing to fuzz around with special settings. This works on 
both Java 9 and Java 10. See 
https://issues.apache.org/jira/browse/NETBEANS-1227 .

For those who are still using Java 8, NetBeans will now appear small (but 
sharp) on HiDPI screens. The old behavior, of NetBeans appearing normal size 
but blurry, can be reverted by right-clicking the NetBeans shortcut, and 
clicking Properties->Compatibility->Change HiDPI Settings->Override high DPI 
scaling behavior->Scaling performed by System. If we expect this to be a 
problem, an alternative would be have the launcher detect the use of Java 8 
(and Windows 8.1 minimum) and turn off DPI awareness programmatically using the 
Windows 
[SetProcessDpiAwareness](https://docs.microsoft.com/en-us/windows/desktop/api/shellscalingapi/nf-shellscalingapi-setprocessdpiawareness)
 API call. But I'd rather recommend that people with HiDPI screens should run 
NetBeans with Java 9 or above, where support for such screens is actually 
available.

This pull request also fixes some relative paths that broke when directories 
were moved around, and makes two other minor fixes.

Note that the new Windows launchers (app64.exe and netbeans64.exe) seem not to 
suppress the console properly; this is an unrelated bug that was present before 
this patch.

[ Full content available at: 
https://github.com/apache/incubator-netbeans/pull/883 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to