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.
I have changed my default font for the Java Editor to Arial 12 and the line Height Correction to 0.9 so that I can get more lines on the editor. When doing a diff this has the effect of making the diff line numbers not have the same line spacing as the source code lines next to them. The normal java source code editor seems fine with these settings.
Althought the user hasn't specified closer any OS/JDK/IDE environment I could recomand you look at those JDK bugs (for 1.4.x): http://developer.java.sun.com/servlet/SessionServlet?url=http://developer.java.sun.com/developer/bugParade/bugs/4470394.html http://developer.java.sun.com/servlet/SessionServlet?url=http://developer.java.sun.com/developer/bugParade/bugs/4469005.html The first one is related to troubles (font's height) when you change color of fonts in the IDE under jdk1.3 and then migrate to jdk1.4 that's my 2 Kc:-)
UI keyword added.
Set target milestone to TBD
I am convinced that this is frequent operation and users should be warned about it.
*** Issue 29767 has been marked as a duplicate of this issue. ***
Created attachment 8427 [details] Editor text properties
Created attachment 8428 [details] Font color properties
Created attachment 8429 [details] Editor x-java properties
The above attachements are my Editor settings which should allow you to easily reproduce this problem. 1) This was reproduced under the 3.4 dev builds 2) I hope you plan on fixing this bug in 3.4 dev? I can help reproduce and verify.
Thanks for the editor settings. I'm afraid it's too late to fix this into 3.4 codebase. FCS is planned on Jan 15. If you really need this to be fixed in 3.4.1, I'll ask Maxym (the 3.4.1 release coordinator) when is the last day for integrations into 3.4.1.
Changing OS to "All", it affects all OS. Working on a fix...
The bug is fixed in the main trunk and projects branch: Checking in LinesComponent.java; /cvs/diff/src/org/netbeans/modules/diff/builtin/visualizer/LinesComponent.java,v <-- LinesComponent.java new revision: 1.5; previous revision: 1.4 Checking in LinesComponent.java; /cvs/diff/src/org/netbeans/modules/diff/builtin/visualizer/LinesComponent.java,v <-- LinesComponent.java new revision: 1.4.78.1; previous revision: 1.4
For me it's OK in NB351-RC1 #200307142351 and jdk1.4.2 and with Gili editor's settings
Created attachment 11121 [details] The contextual diff, that fix this problem.
The fix was merged into release35_fixes branch: Checking in src/org/netbeans/modules/diff/builtin/visualizer/LinesComponent.java; /shared/data/helm/cvs/repository/diff/src/org/netbeans/modules/diff/builtin/visualizer/LinesComponent.java,v <-- LinesComponent.java new revision: 1.4.88.1; previous revision: 1.4 done
Confirmed as fixed in Sun ONE Studio 5.0 patched with Update 1.
Fixed also in Nevada Patch 1 and in Arrow. (And confirmed verified by Jirka above...)
I've verified a fix also on Sparc-Solaris 8 and Arrow build #031024_1) using jdk1.4.2_02
verified also on RH 9 linux (Arrow build #031024_1, using jdk1.4.2_02)
removing RELNOTE keyword