'Netbeans 11.1 looks blurred and enlarged with JDK13
My Netbeans 11.1 looks ugly when starting with jdk-13.
Below you can see the the difference between jdk-13 (left) and jdk-8 (right):
I've already tried to change the keys -J-Dsun.java2d.dpiaware
, -J-Djdk.gtk.version
, and tried it with open- and oracle-jdk, but nothing changed.
Thanks for your help ;)
Solution 1:[1]
NetBeans 11.1 was released almost two months before JDK 13, and while JDK 13 may appear to work fine with NetBeans 11.1 there are limitations, and it is definitely not officially supported. From the Product Manager for NetBeans: "Apache NetBeans 11.1 supports JDK 8 to JDK 12".
So if you want to use JDK 13 with NetBeans, download and install Apache NetBeans 11.2. The resolution looks fine to me when starting NetBeans 11.2 with JDK 13:
Regarding your "enlarged" concern, note that you can:
- Change font size in the edit windows by holding down the ALT key while scrolling with the mouse.
- Change the font size used by NetBeans in menus, dialogs and views by specifying the
--fontsize
parameter:- You can do this temporarily by providing
--fontsize
as a parameter to netbeans.exe at startup. - You can do it permanently by editing the configuration file netbeans.conf.
- You can do this temporarily by providing
See FaqFontSize for more details.
Open a new question if you still see the same issues when using JDK 13 with NetBeans 11.2.
Solution 2:[2]
Locate netbeans.conf (For windows: C:\Program Files\NetBeans-11.1\netbeans\etc\netbeans.conf)
Change netbeans_jdkhome property
netbeans_jdkhome=C:\Program Files\Java\<YOUR_JAVA_8_INSTALLATION>
TL;DR
Sadly, java swing rendering is not consistent through out all JDK versions. So changing the JDK that Netbeans uses to run will affect a bit the rendering.
I use myself netbeans 11.1 and since i don't like the way jdk 11 renders components (as you said they are bigger and blurry) i start netbeans with JDK 8
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | skomisa |
Solution 2 | BabaNew |