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 38687

Summary: [JDK1.5.0] F3 / Ctrl-F3 doesn't work
Product: editor Reporter: msayag <msayag>
Component: -- Other --Assignee: Martin Roskanin <mroskanin>
Status: VERIFIED FIXED    
Severity: blocker Keywords: JDK_SPECIFIC
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: The thrown exception

Description msayag 2004-01-13 13:16:20 UTC
"Find (Ctrl + F or F3)" and "Find current word
(Ctrl + F3)" doesn't work.

1. The attached exception is thrown.
2. The matching words are not highlighted
correctly (refreshing the view is required).
3. The current text (used by F3) is not changed
(pressing F3 jumps to another word)
Comment 1 msayag 2004-01-13 13:17:15 UTC
Created attachment 12857 [details]
The thrown exception
Comment 2 msayag 2004-01-22 13:25:15 UTC
I suspect the bug is related to the fact that I am using JDK1.5-alpha
Comment 3 Milan Kubec 2004-01-22 13:57:34 UTC
Please add output of 'java -version'. Thanks.
Comment 4 msayag 2004-01-22 14:21:05 UTC
> java -version

java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)
Comment 5 Martin Roskanin 2004-01-23 10:35:09 UTC
we wil fix it to NB 3.6
Comment 6 Martin Roskanin 2004-01-29 12:44:42 UTC
fixed in [maintrunk]

/cvs/editor/libsrc/org/netbeans/editor/BaseTextUI.java,v  <-- 
BaseTextUI.java
new revision: 1.61; previous revision: 1.60

The problem occured because of double adding prop change listener to
JTextComponent. From BaseTextUI and its super class BasicTextUI ...
It causes wrong removing of listener, memory leak and the problem of
this issue.
Comment 7 Martin Roskanin 2004-01-29 14:33:30 UTC
*** Issue 39216 has been marked as a duplicate of this issue. ***
Comment 8 Jiri Prox 2006-04-07 09:07:38 UTC
Verified