JDK-6475287 : Scroll bar in TextArea doesn't move when texts in the text area is selected & moved downwards.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: other
  • Submitted: 2006-09-26
  • Updated: 2011-01-19
  • Resolved: 2007-11-23
Related Reports
Duplicate :  
Relates :  
Description
1. Create a Frame with TextArea
2. Enter many lines of text so that vertical scrollbar becomes small
3. using mouse,  select firstline and drag it downwards. now you will observe
   vertical scroll bar moving downwards.
4. similarly click on last line, using MOUSE select last line and drag it upwards 
   (that is try to select entire text using mouse drag)

Expected Result: The vertical scrollbar should move upwards.
Actual Result: Vertical scrollbar doesn't move upwards.

Another Similar defect is 
 1. Type some text in the same line untill you see very small horizontal Scrollbar.
 2. select the first letter using mouse and drag till the end of the line 
Expected result: The Horizontal Scrollbar of TextArea should move towards Right.
Actual Result: The Horizontal Scrollbar of TextArea is not moving towards Right.

This Defect is reproducible in Solaris Xtoolkit and occurs in 1.6.0
To reproduce the defect please run the attached test and repeat the above steps.
I have also noticed another interesting issue related to the bug. To reproduce it repeat steps 1-3 from the first case: select the first line and drag the mouse downwards out of the frame. Then release mouse button. Notice that keyboard focus is still in the textarea, but if you try to move text caret upwards with keyboard you wouldn't be able to do this as the text would be autoscrolled down.

Comments
EVALUATION Fixed by 6497109 (in JDK 7 and 6).
23-11-2007

EVALUATION As I can see handling of mouse move/drag events is currently performed only for textarea scrollbars. We should also track these events for the textarea itself.
05-10-2006

EVALUATION The bug is reproducible with XToolkit, on Solaris and Linux. I have also noticed that when user selects the first line with mouse and then moves mouse downwards quickly, then scrollbar doesn't moved too.
28-09-2006