JDK-8149636 : TextField flicker & over scroll when selection scrolls beyond the bounds of TextField.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_7
  • CPU: generic
  • Submitted: 2016-02-11
  • Updated: 2016-11-07
  • Resolved: 2016-03-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b114Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
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