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

JTextField is very slow when pressing Home or End Keys on Large Content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.1
    • client-libs



      Name: jk109818 Date: 09/18/2002


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

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]
      SP3

      A DESCRIPTION OF THE PROBLEM :
      If a JTextField contains a very large line (in my case 26
      KB), then Pos1 and End keys are VERY VERY slow, using 100%
      CPU time for about a minute on a fast PC and also freezing
      all window actions (cannot open other windows or click on
      task bar or start menu) during that time. Pressing CTRL-A
      (which marks the content and also jumps to the last
      position) is fast though.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. create a JTextField
      2. paste a very large line into it
      3. press Pos1 or End keys

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      This should take only a fraction of a second, not a minute.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 164673)
      ======================================================================

            peterz Peter Zhelezniakov
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: