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

1.4.0 REGRESSION: JEditorPane: down arrow occasionally nonfunctional

    XMLWordPrintable

Details

    • mantis
    • x86
    • windows_2000, windows_xp

    Description



      Name: jk109818 Date: 04/10/2002


      FULL PRODUCT VERSION :
      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows XP [Version 5.1.2600]


      ADDITIONAL OPERATING SYSTEMS :
      SunOS (machine name) 5.8 Generic_108528-08 sun4u sparc
      SUNW,Ultra-60



      A DESCRIPTION OF THE PROBLEM :
      In a JEditorPane, the down arrow has no effect after you
      add text on a line preceding a blank line.


      REGRESSION. Last worked in version 1.3.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. In a JEditorPane, hit Return twice.
      2. Type "test".
      3. Hit the up arrow twice.
      4. Type "test".
      5. Hit the down arrow.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected: Cursor moves down.

      Actual: Nothing happens.



      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      (none)

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      /**
       * Tests a bug in JEditorPane which prevents the down arrow from working in
       * some cases.
       *
       * To demontrate the bug, do the following in the JEditorPane that appears:
       * 1. Hit return twice.
       * 2. Type "test".
       * 3. Hit the up arrow twice.
       * 4. Type "test".
       * 5. Hit the down arrow.
       */

      import javax.swing.*;
      import javax.swing.text.*;

      public class TestBug {
        public static void main(String args[]) {
          JFrame f = new JFrame();
          JEditorPane jep = new JEditorPane();
          jep.setEditable(true);
          f.getContentPane().add(jep);
          f.setVisible(true);
          f.setSize(500, 500);
          f.setLocation(100,100);
        }
      }

      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      After typing text, use left or right arrows before using
      down arrow.

      Release Regression From : 1.3.1_03
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Review ID: 145083)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              idk Igor Kushnirskiy (Inactive)
              jkimsunw Jeffrey Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: