-
Bug
-
Resolution: Fixed
-
P2
-
8, 9
-
b114
-
generic
-
windows_7
Steps to reproduce the issue:
1. Execute the below code.
2. Mouse press on the text in TextField.
3. Keep moving Move towards left or right with selecting text.
4. Move mouse away outside the bounds of TextField.
Observed:
1. TextField flickers while mouse is moved outside the TextField bounds.
2. TextField text over scrolls towards left, when mouse is dragged towards right.
// Test Code
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.TextField;
class TextFieldScrolling {
public static void main(String args[]) {
Frame f = new Frame("Frame");
TextField tx = new TextField("abcdefghijkl");
f.setLayout(new FlowLayout());
f.add(tx);
f.setSize(200, 200);
f.setVisible(true);
}
}
Text Area :
The above mentioned second issue of over scroll also happens with Text Area.
There are two issues listed here, both of which are regression.
Flicker is regression of - 8036110
Over scroll is regression of - 7092551
1. Execute the below code.
2. Mouse press on the text in TextField.
3. Keep moving Move towards left or right with selecting text.
4. Move mouse away outside the bounds of TextField.
Observed:
1. TextField flickers while mouse is moved outside the TextField bounds.
2. TextField text over scrolls towards left, when mouse is dragged towards right.
// Test Code
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.TextField;
class TextFieldScrolling {
public static void main(String args[]) {
Frame f = new Frame("Frame");
TextField tx = new TextField("abcdefghijkl");
f.setLayout(new FlowLayout());
f.add(tx);
f.setSize(200, 200);
f.setVisible(true);
}
}
Text Area :
The above mentioned second issue of over scroll also happens with Text Area.
There are two issues listed here, both of which are regression.
Flicker is regression of - 8036110
Over scroll is regression of - 7092551
- duplicates
-
JDK-6544368 On TextArea, the mouse drag action causes characters to disappear
-
- Closed
-
- relates to
-
JDK-7092551 Double-click in TextField sets caret to the beginning
-
- Resolved
-
-
JDK-8036110 In TextField can only select text visible or to the left of the cursor
-
- Resolved
-