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

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

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: