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.
While Javadoc in the "Javadoc window" is rendered correctly, Javadoc for the same class member is rendered poorly in the editor's Javadoc pop-up: - parts of package name are separated with spaces - it is all rendered with monospaced font - it is narrow (without reason) In addition, the following bug is common to the Javadoc window and Javadoc pop-up: - monospace/code parts of the Javadoc are rendered in much smaller font than the rest See the attached screenshot. -- Product Version: NetBeans IDE 7.4 RC1 (Build 201309162201) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)
Created attachment 140492 [details] screenshot
This is still present in the released version. -- Product Version: NetBeans IDE 7.4 (Build 201310111528) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)
Just downloaded 7.4 and can confirm that I'm also observing the "all monospace" javadoc popup rendering problem. It didn't use to be this way (I think 7.3 didn't have this problem, though I can't remember.) It makes the Javadoc harder to read--I'd love to see a fix, too.
*** Bug 237704 has been marked as a duplicate of this bug. ***
Some progress on the fix of this bug?
I really wish that you've left things like it was in NB 7.2. Why change style and bother users?
Still observing this on NetBeans IDE 8.0.
Created attachment 149851 [details] Another example (Compare Windows LAF with Apple LAF)
This regression seems to relate to the changes made in http://hg.netbeans.org/main-silver/rev/92bb32dd1b8c http://hg.netbeans.org/main-silver/rev/153262c40a05 BUT I could not figure out how to fix it myself. I also wonder why it works in the JavaDoc Top Component and in the Navigator JavaDoc popup.
This bug stills in 8.0.1
Please, do not change the version value, it is the version where was the problem reported at first
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
The problem of Javadoc being rendered in all-monospace in the popup still remains in the latest build. Would love to see this fixed. It did not use to be this way in earlier NetBeans versions (7.3 or maybe earlier?). Product Version: NetBeans IDE Dev (Build 201607070002) Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14 System: Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)
Created attachment 165397 [details] Proposed patch Here's a patch. This fixes both the all-monospace-Javadoc problem and the text size problem. See attached screenshots in a subsequent comment. The all-monospaced-Javadoc bug was introduced while trying to make the text larger in https://netbeans.org/bugzilla/show_bug.cgi?id=233151 . According to a comment in o.n.modules.editor.completion.HTMLDocView.setBodyFontInCSS, the old code attempts to "not use monospaced font, just adjust fontsize", but this fails because, after the patch for #233151, setFont is called with a monospace font earlier, and the stylesheet is then set based on the font face from getFont(). The first part of the solution is to fix setBodyFontInCSS so that the font face is preserved again. The second part is to take the editor's text zoom settings into account when HTMLDocView is opened in the context of an editor window; this is done in o.n.modules.editor.completion.DocumentationScrollPane. When HTMLDocView is used in other contexts, e.g. in the Navigator, there is no zoom setting to apply (zoom settings are per-editor), but arguably in these cases it is correct to use the same text size as the rest of the UI.
Created attachment 165398 [details] Screenshot before and after the proposed patch Screenshot of the Javadoc popup before and after the proposed patch, at two different editor zoom levels.
Created an issue for this bug in the new Apache NetBeans JIRA: https://issues.apache.org/jira/browse/NETBEANS-404