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

swing: minor caret repaint problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta2
    • generic
    • generic



      Name: yyT116575 Date: 03/13/2001


      java version "1.3.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)

      (Happens in 1.3 as well)

      Minor selection issue causes caret to blink between caret color and text
      highlight background rather than between caret color and background color.
      Probably platform independent, but only tested in Windows.

        To reproduce:

      Open SwingSet2. Find the JTextField on the internal frame demo tab. Click and
      hold at the end of the field, drag to the left to select some text, and while
      still holding the mouse down drag back to the right so that no text remains
      selected. There are probably other ways to reproduce it as well.

      The caret will now blink to the highlight color rather than to the background
      color, and it remains this way while typing alphanumeric keys. Looks pretty
      weird. Fixes itself when the cursor is repositioned or if backspace is pressed.
      (Review ID: 118731)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: