I got a new 4K Monitor and everything looks amazing but coding with NetBeans is difficult. The controls are very small and a java frame looks very small.
I've seen some Stackoverflow posts about this problem and they said I should add a line in the preferences file so that hi-dpi mode is disabled but my java frame is still small.
For those who land here like me in 2019.
Currently using Apache Netbeans 11 in a 4k monitor and changing the
dpiaware
option has no effect for me.What worked is adding the option
-J-Dsun.java2d.uiScale=2.5
to the filenetbeans.conf
just before-J-Dsun.java2d.dpiaware=true
.The indicted piece of the file:
Thanks to ron190 that help us pointing this out: