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.
Summary: | selecting different sources via tabs "loses" cursor in Editor | ||
---|---|---|---|
Product: | platform | Reporter: | ssffleming <ssffleming> |
Component: | Text | Assignee: | mslama <mslama> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | athempel, dkonecny, mroskanin, pzavadsky |
Priority: | P2 | Keywords: | FOCUS |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows 3.1/NT | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Focus is requested from BasicTabbedPaneUI
Suggested fix of CloneableEditor Patch |
Description
ssffleming
2002-11-13 17:48:34 UTC
reproduced. Focus appears in the first button of the editor toolbar. I am not able to find out who change the focus from editor pane to the button. Adding keyword FOCUS *** Issue 29607 has been marked as a duplicate of this issue. *** *** Issue 29685 has been marked as a duplicate of this issue. *** *** Issue 13355 has been marked as a duplicate of this issue. *** Created attachment 8862 [details]
Focus is requested from BasicTabbedPaneUI
I am not sure whether the bug is in JDK or core/windowing system. Reassigning to core for more investigation. I think it is necessary to overwrite requestDefaultFocus() in TopComponent: org.netbeans.modules.java.JavaEditor$JavaEditorComponent or in some superclass if it is enough to request default focus on editor pane could be possible to overwrite it in some editor subclass of TopComponent like CloneableEditor. I attach diff for org.openide.text.CloneableEditor. Created attachment 8878 [details]
Suggested fix of CloneableEditor
Created attachment 8879 [details]
Patch
You can test patch, just put to lib/patches. It works fine for me. Works for me too. Thanks Marek. Tested on: Operating System = Windows 2000 version 5.0 running on x86 Java; VM; Vendor = 1.4.1; Java HotSpot(TM) Client VM 1.4.1-b21; Sun Microsystems Inc. I reviewed the patch and it seem to me OK. Fixed in CloneableEditor. Method requestDefaultFocus() is added to assign focus to editor pane when requestDefaultFocus() is called for TopComponent. Modified: openide/src/org/openide/text/CloneableEditor.java r.1.54 verified in NB3.6 beta |