You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Giuseppe Tino <gi...@gmail.com> on 2018/09/25 08:47:39 UTC

How to avoid the scaling of icons on NetBeans 9?

Hi, I have a problem with the graphic on Netbeans 9.
My monitor resolution is 2560x1440 and Netbeans scales up the icons and the
splashscreen to have a size similar to the one of a 1080 resolution
monitor. This causes that they are pixelated and undefined.
I tried to set the parameter -J-Dsun.java2d.dpiaware to both true and false
but I don't see any difference.

This is my NB 9 configuration:

*Product Version:* Apache NetBeans IDE 9.0 (Build
incubator-netbeans-release-334-on-20180708)

*Java:* 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13

*Runtime:* Java(TM) SE Runtime Environment 10.0.2+13

*System:* Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)


The problem doesn't occur on Netbeans 8 on which the icons are smaller to
respect the screen resolution but appear clear and well defined

*Product Version:* NetBeans IDE 8.2 (Build 201705191307)

*Updates:* NetBeans IDE is updated to version NetBeans 8.2 Patch 2
<http://wiki.netbeans.org/NetBeans8.2PatchesInfo>

*Java:* 1.8.0_172; Java HotSpot(TM) 64-Bit Server VM 25.172-b11

*Runtime:* Java(TM) SE Runtime Environment 1.8.0_172-b11

*System:* Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)

Do you have any suggestion to obtain the same result (smaller and well
defined icons) on NB 9?

Thanks in advance,
best regards


--

Giuseppe Tino

Re: How to avoid the scaling of icons on NetBeans 9?

Posted by Giuseppe Tino <gi...@gmail.com>.
Hi Eirik,
thanks for your answer.
Unfortunately the windows compatibility option are grayed out on my 
machine (probably some restriction by the company).
The github links seems only to refer to the windows (and MacOs) look and 
feel, is there any project to convert also the netbeans icons (open 
project, new project etc.)?
If yes maybe I can contribute.
Thanks.


--
Giuseppe

On 25-Sep-18 17:23, Eirik Bakke wrote:
>
> The change in behavior due to the switch from Java 8 to Java 10. To 
> get the best HiDPI support on NetBeans 9 with Java 10, right-click the 
> NetBeans shortcut and click Properties->Compatibility->Change HiDPI 
> Settings->Override high DPI scaling behavior->Scaling performed by 
> Application.
>
> The above trick will make text sharp--though icons will still be 
> blurry. If you want everything to be sharp (but tiny), you can run 
> NetBeans to Java 8, or disable HiDPI scaling in the windows "Display" 
> settings (set "Scale and Layout" to 100%). The command-line Java 
> parameter should probably also work; not sure its exact setting (would 
> have to be set in netbeans.conf).
>
> There is some work in progress on improving HiDPI support in future 
> NetBeans versions:
>
> https://github.com/apache/incubator-netbeans/pull/859
>
> https://github.com/apache/incubator-netbeans/pull/883
>
> -- Eirik
>
> *From:* Giuseppe Tino <gi...@gmail.com>
> *Sent:* Tuesday, September 25, 2018 4:48 AM
> *To:* users@netbeans.incubator.apache.org
> *Subject:* How to avoid the scaling of icons on NetBeans 9?
>
> Hi, I have a problem with the graphic on Netbeans 9.
>
> My monitor resolution is 2560x1440 and Netbeans scales up the icons 
> and the splashscreen to have a size similar to the one of a 1080 
> resolution monitor. This causes that they are pixelated and undefined.
> I tried to set the parameter -J-Dsun.java2d.dpiaware to both true and 
> false but I don't see any difference.
>
>
> This is my NB 9 configuration:
>
> *Product Version:* Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
>
> *Java:* 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13
>
> *Runtime:* Java(TM) SE Runtime Environment 10.0.2+13
>
> *System:* Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)
>
> The problem doesn't occur on Netbeans 8 on which the icons are smaller 
> to respect the screen resolution but appear clear and well defined
>
> *Product Version:* NetBeans IDE 8.2 (Build 201705191307)
>
> *Updates:* NetBeans IDE is updated to version NetBeans 8.2 Patch 
> 2<http://wiki.netbeans.org/NetBeans8.2PatchesInfo>
>
> *Java:* 1.8.0_172; Java HotSpot(TM) 64-Bit Server VM 25.172-b11
>
> *Runtime:* Java(TM) SE Runtime Environment 1.8.0_172-b11
>
> *System:* Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)
>
> Do you have any suggestion to obtain the same result (smaller and well 
> defined icons) on NB 9?
>
> Thanks in advance,
> best regards
>
>
> --
>
> Giuseppe Tino
>