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 45951

Summary: Arrow keys in OW scroll buffer but do not move caret
Product: platform Reporter: Jesse Glick <jglick>
Component: Output WindowAssignee: _ tboudreau <tboudreau>
Status: CLOSED FIXED    
Severity: blocker Keywords: A11Y, RANDOM, REGRESSION
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Log after building {release36}nbbuild/build.xml#all-beans (JDK 1.5.0 b57, GTK) and making various fruitless attempts to move the caret by KB (GZIPped text)

Description Jesse Glick 2004-07-08 21:56:52 UTC
040708. I just noticed in the past couple of days
that arrow keys no longer work correctly when the
OW has focus! Up/Down/Left/Right scroll the buffer
in the corresponding direction. But they should be
moving the text caret (and incidentally scrolling
as needed to make the caret displayable).

Clicking in the text area does not help. You can
set the caret (or make a selection) with the
mouse, but not with the KB.
Comment 1 Jesse Glick 2004-07-08 21:57:18 UTC
Fedora Core 2, 1.5.0 b57, GTK.
Comment 2 _ tboudreau 2004-07-12 05:58:14 UTC
Please reproduce with logging on and attach log
Comment 3 Jesse Glick 2004-07-14 19:13:29 UTC
Also it is effectively impossible to keep the buffer locked to the end
of the output if any errors have been encountered, if you cannot
control the caret.
Comment 4 Jesse Glick 2004-07-14 19:16:40 UTC
Created attachment 16257 [details]
Log after building {release36}nbbuild/build.xml#all-beans (JDK 1.5.0 b57, GTK) and making various fruitless attempts to move the caret by KB (GZIPped text)
Comment 5 _ tboudreau 2004-07-20 14:35:52 UTC
Is this while writing is still happening?  If so, the log entries:

1089828753601:Trying to reacquire scroll lock for end 3596.0 val 3596 perc 1.0

could be the problem.
Comment 6 Jesse Glick 2004-07-20 18:56:48 UTC
While writing is still happening? I'm not sure what you're asking.
Reproducible both during the build and after it is completed.
Reproducible on both GTK and Ocean. Reproducible 100% consistently in
all dev builds since I filed this bug. I am using 1.5.0 b58 currently.
Comment 7 _ tboudreau 2004-07-23 00:26:15 UTC
Hrm, well I found the problem - so that Esc would work to hide the output window, I do 
the following to the JEditorPane:

pane.getKeymap().setResolveParent ((Keymap) Lookup.getDefault(Keymap.class));

and similar for the ActionMap.  This fixes escape, but causes either the actions or 
keystrokes for arrow keys to be overridden.
Comment 8 Jesse Glick 2004-07-23 01:01:11 UTC
Note that I cannot reproduce in 040722 (Ocean, 1.5.0 b58); seems to be
working fine. Did you change something?
Comment 9 _ tboudreau 2004-07-23 03:22:01 UTC
Not yet.  It may depend on the look and feel, since that's what does the keybindings - it 
may just be an action name collision or something.
Comment 10 Jesse Glick 2004-07-23 18:33:30 UTC
Yes, but as mentioned before I continued to see this bug for a while
*after* I switched from GTK to Ocean, so I don't think it is purely a
L&F issue.
Comment 11 Jesse Glick 2004-07-24 23:23:16 UTC
Can see it happening again in 040724 (Ocean).
Comment 12 _ tboudreau 2004-07-25 02:28:14 UTC
Checking in demosrc/org/netbeans/core/output2/TestFrame.java;
/cvs/core/output2/demosrc/org/netbeans/core/output2/TestFrame.java,v  <--  
TestFrame.java
new revision: 1.8; previous revision: 1.7
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/core/output2/Bundle.properties;
/cvs/core/output2/src/org/netbeans/core/output2/Bundle.properties,v  <--  
Bundle.properties
new revision: 1.6; previous revision: 1.5
done
Checking in src/org/netbeans/core/output2/Controller.java;
/cvs/core/output2/src/org/netbeans/core/output2/Controller.java,v  <--  Controller.java
new revision: 1.8; previous revision: 1.7
done
Checking in src/org/netbeans/core/output2/ExtPlainView.java;
/cvs/core/output2/src/org/netbeans/core/output2/ExtPlainView.java,v  <--  
ExtPlainView.java
new revision: 1.5; previous revision: 1.4
done
Checking in src/org/netbeans/core/output2/FileMapStorage.java;
/cvs/core/output2/src/org/netbeans/core/output2/FileMapStorage.java,v  <--  
FileMapStorage.java
new revision: 1.4; previous revision: 1.3
done
Checking in src/org/netbeans/core/output2/FindDialogPanel.form;
/cvs/core/output2/src/org/netbeans/core/output2/FindDialogPanel.form,v  <--  
FindDialogPanel.form
new revision: 1.4; previous revision: 1.3
done
Checking in src/org/netbeans/core/output2/FindDialogPanel.java;
/cvs/core/output2/src/org/netbeans/core/output2/FindDialogPanel.java,v  <--  
FindDialogPanel.java
new revision: 1.5; previous revision: 1.4
done
Checking in src/org/netbeans/core/output2/OutWriter.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutWriter.java,v  <--  OutWriter.java
new revision: 1.7; previous revision: 1.6
done
Checking in src/org/netbeans/core/output2/OutputDocument.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutputDocument.java,v  <--  
OutputDocument.java
new revision: 1.4; previous revision: 1.3
done
Checking in src/org/netbeans/core/output2/OutputEditorKit.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutputEditorKit.java,v  <--  
OutputEditorKit.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/core/output2/OutputTab.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutputTab.java,v  <--  
OutputTab.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/core/output2/PairMap.java;
/cvs/core/output2/src/org/netbeans/core/output2/PairMap.java,v  <--  PairMap.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/core/output2/WrappedTextView.java;
/cvs/core/output2/src/org/netbeans/core/output2/WrappedTextView.java,v  <--  
WrappedTextView.java
new revision: 1.8; previous revision: 1.7
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/core/output2/ui/AbstractOutputPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java,v  <--  
AbstractOutputPane.java
new revision: 1.11; previous revision: 1.10
done
Processing log script arguments...
Comment 13 Tomas Danek 2005-08-02 11:41:26 UTC
verified in 4.2 20050728