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

Line break calculations in Java 7 are incorrect.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7, 8
    • client-libs
    • b93
    • generic
    • generic

        Run HTMLEditorTest which will display a frame with a HTMLEditorKit backed
        JEditorPane.

        Inorder to see as described below, do not resize the Window.
        Insert the cursor before the first qqqq in the text.

        Step 1 type "o"
        Expected: The last pp in the first line is moved to the next line.
        Actual: The last pp is moved to the next line, but it is proceeded by a
        space.

        Step 2 type "n"
        Expected: n is added after the o
        Actual: n is added after the o, but also the last q in the last qqqq on the
        first line is moved to the next line.

        Step 3 type "e tw".
        Expected: the last qqqq is moved to the next line.
        Actual: Everything after the first qqqq is moved to the next line.

              dmarkov Dmitry Markov
              dmarkov Dmitry Markov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: