This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252452 - HiDPI resolution of 3840x2160 results in tiny icons and text fields that are too small for the text within
Summary: HiDPI resolution of 3840x2160 results in tiny icons and text fields that are ...
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P2 normal with 16 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-18 10:29 UTC by jianyongng
Modified: 2019-02-12 09:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (38.31 KB, text/plain)
2015-05-18 10:29 UTC, jianyongng
Details
Screenshot of Netbeans 8.1 on a HiDPI/4k (3840x2160) screen using Oracle JDK8u66 in ElementaryOS Freya (Linux) (703.38 KB, image/png)
2016-01-16 11:47 UTC, carniz
Details
Screenshot of Netbeans 8.1 (with the new Darcula theme) on a HiDPI/4k (3840x2160) screen using Oracle JDK8u66 in ElementaryOS Freya (Linux) (680.73 KB, image/png)
2016-01-17 00:22 UTC, carniz
Details
Screenshot of Netbeans 8.1 (with the new Darcula theme) on a HiDPI/4k (3840x2160) screen using Oracle JDK8u66 in Windows 10 (1.87 MB, image/png)
2016-01-27 17:58 UTC, carniz
Details
Full screen shot of 4k display running jdk9 and NB (770.99 KB, image/png)
2017-12-05 22:48 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jianyongng 2015-05-18 10:29:40 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_80
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Comment 1 jianyongng 2015-05-18 10:29:45 UTC
Created attachment 153718 [details]
IDE log
Comment 2 thor 2015-09-09 00:01:52 UTC
This is also an issue with the upcoming 8.1 release on UHD/4K displays on Windows 10. The UI must listen to the global dpi settings, otherwise it becomes unusable on smaller UHD displays.
Comment 3 aede 2016-01-15 10:04:15 UTC
Not bound to Windows. Experiencing the same on Linux.

Display: 3840x2160
OS: ubuntu 15.10 (64-bit)
Netbeans info:
  Product Version: NetBeans IDE 8.1 (Build 201510222201)
  Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b17
  Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b17
  System: Linux version 4.2.0-23-generic running on amd64; UTF-8; en_US (nb)
Comment 4 carniz 2016-01-16 11:45:46 UTC
I also would like to stress the need to fix this, since many new laptops (such as the Dell XPS 15 / Precision 5510) ship with 4K HiDPI screens. I just bought the latter one, and Netbeans looks amateurish compared to native GTK applications. Attaching a screenshot.
Comment 5 carniz 2016-01-16 11:47:45 UTC
Created attachment 158154 [details]
Screenshot of Netbeans 8.1 on a HiDPI/4k (3840x2160) screen using Oracle JDK8u66 in ElementaryOS Freya (Linux)
Comment 6 carniz 2016-01-17 00:22:34 UTC
Created attachment 158158 [details]
Screenshot of Netbeans 8.1 (with the new Darcula theme) on a HiDPI/4k (3840x2160) screen using Oracle JDK8u66 in ElementaryOS Freya (Linux)

You need the eyes of a hawk to use NB on this screen...
Comment 7 carniz 2016-01-27 17:58:41 UTC
Created attachment 158256 [details]
Screenshot of Netbeans 8.1 (with the new Darcula theme) on a HiDPI/4k (3840x2160) screen using Oracle JDK8u66 in Windows 10

And here's how it looks in Windows on the same laptop (Dell Precision 5510). Notice the difference in font rendering between Java/Netbeans and the native font rendering of the desktop icons. It puts a strain on the eyes :(
Comment 8 desperate_dante 2016-02-24 06:51:32 UTC
I too was having the same issues on a large display, but found that by adding the font option in netbeans.conf, does the UI fonts were much more legable (restart Netbeans to activate).

Currently I'm using the settings below on a 2560x1400 screen, but you'll need to salt to suit your particular tastes. ;)

netbeans_default_options="--fontsize 24"

Be aware though that there are other bugs in the UI that stop all of the controls scaling to match the new, large font. For me, the general size improvement far outweighs the hassle of messing around, enlarging the occasional dialog to see the contents.

Caveat benevolentia!
Comment 9 noot 2016-06-19 09:22:12 UTC
Looks like support is built into JDK9 http://openjdk.java.net/jeps/263
Comment 10 Christian Lenz 2017-02-15 14:21:01 UTC
We need a patch now I think, not waiting to NB9
Comment 11 Christian Lenz 2017-02-15 14:30:23 UTC
the trick with the dpiaware=false was first step. Because it looks good but after 3 seconds NetBeans resizes back to getting smaller. I googled and I found this: http://stackoverflow.com/questions/23651486/netbeans-ide-scaling-on-windows-8

the thing with the registry and manifests (for windows 10) worked for me. I can work again.
Comment 12 Christian Lenz 2017-04-06 10:42:27 UTC
Hope that this will be fixed in NetBeans 9. This is really needed.
Comment 13 Christian Lenz 2017-04-06 11:42:43 UTC
Seems not fixed in the newest nightly build :/
Comment 14 runiter 2017-04-06 13:23:44 UTC
I think they're just waiting for Java 9 release (this July) which is supposed to fix HiDPI problem for all Java applications including Netbean: http://openjdk.java.net/jeps/263
Comment 15 Cruiser 2017-07-04 20:53:27 UTC
Will it be fixed in Netbeans 9? World be awesome
Comment 16 tbrunhoff 2017-12-05 22:35:28 UTC
This is clearly not making progress, and we are not past jdk8 EA. I have a dell precision 7520 with a 3840x2160 display, running Fedora 26.  The display card is Quadro M1200 Mobile. The NB, Java and specific OS versions are listed below.

I've tried with -J-Dsun.java2d.dpiaware=false and =true
I've tried with -J--add-modules=java.se.ee (which does address bug #271499)

But still all the icons and text fields are far too small. One screenshot attached.

Product Version: NetBeans IDE Dev (Build 201712030002)
Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
Runtime: Java(TM) SE Runtime Environment 9.0.1+11
System: Linux version 4.13.13-200.fc26.x86_64 running on amd64; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 17 tbrunhoff 2017-12-05 22:48:08 UTC
Created attachment 165538 [details]
Full screen shot of 4k display running jdk9 and NB
Comment 18 tbrunhoff 2017-12-05 22:52:27 UTC
Correction: "...and we are now well past jdk9 EA.
Comment 19 Christian Lenz 2017-12-06 08:58:09 UTC
As I already said, this workaround helped me: http://stackoverflow.com/questions/23651486/netbeans-ide-scaling-on-windows-8. Of course it is only a workaround, but it could help you too.

Can you please create a new ticket at the new Bugtracker JIRA? https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=216

So you can reference this ticket to the other one as an external issue and we can close it here. Would be great. thx :)
Comment 20 sidtj 2018-05-04 13:45:45 UTC
I was not sure whether a bug had been reported on apache JIRA so I did:

https://issues.apache.org/jira/browse/NETBEANS-765

BTW, I have the same problem in NB 8.2. Would really appreciate any work on it. Thank you!
Comment 21 tralala 2018-10-23 20:39:43 UTC
I have the same problem with NetBeans 9.0.....on XPS 15...It drives me crazy. Any fix?
Comment 22 Christian Lenz 2018-10-24 09:14:16 UTC
(In reply to sidtj from comment #20)
> I was not sure whether a bug had been reported on apache JIRA so I did:
> 
> https://issues.apache.org/jira/browse/NETBEANS-765
> 
> BTW, I have the same problem in NB 8.2. Would really appreciate any work on
> it. Thank you!

Unfortunately there will be no more bug fixes or updates for NetBeans 8.2. The HiDPI problem will work with the Stackoverflow solution quite well. I use it everyday, w/o any problem. You can switch to NetBeans 9.0 or NetBeans 10.0 VC 1 (Voting Candidate 1, internal name for Apache first Release of NB 10.0).


(In reply to tralala from comment #21)
> I have the same problem with NetBeans 9.0.....on XPS 15...It drives me
> crazy. Any fix?

Hey tralala, for NetBeans 9.0 you can fix it, for windows, when you right click the netbeans.exe or netbeans64.exe, go to properties -> compatibilty -> change high dpi settings -> and check the checkbox: override high dpi scale and choose Application. (I use german Windows so I don't know the exact wording). So it is the last checkbox.

Good to know, that is not needed with NetBeans 10.0 VC1 anymore :) So download this new version.

I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-765 and here https://issues.apache.org/jira/browse/NETBEANS-1227. Please discuss it there for further information.
Comment 23 LaurenDesouza 2019-02-12 09:07:18 UTC
Those people who are using NetBeans- PHP platform should be very happy after getting the information on how to use the Apache issue tracking system for new NetBeans issues.

Lauren,
https://www.cvfolks.co.uk/cover-letter/