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

Line break calculations in Java 7 are incorrect.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7, 8
    • Fix Version/s: 8
    • Component/s: client-libs
    • Labels:
    • Resolved In Build:
      b93
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: