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

All JTextComponents should treat replace as an atomic edit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.2
    • 1.4.0
    • client-libs
    • None
    • mantis
    • generic
    • generic

      As a fix for 4431047, AbstractDocument was given a replace method. This was designed to allow replacing text to be treated as an atomic operation. The JTextComponent method replaceSelection was then changed to call that new method. Unfortunately, it was overlooked that JEditorPane and JTextPane override that method. Therefore, they do not automatically see the benefit of this change. Those two methods should be looked at and changed to use the new replace method.

            svioletsunw Scott Violet (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: