Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8149636

TextField flicker & over scroll when selection scrolls beyond the bounds of TextField.

    Details

    • Subcomponent:
    • Resolved In Build:
      b114
    • CPU:
      generic
    • OS:
      windows_7

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arapte Ambarish Rapte
                Reporter:
                arapte Ambarish Rapte
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: