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

[macosx] The highlighted text jumps a few columns automatically after clicking the set button.

XMLWordPrintable

      Testsuite name: JCK manual
      Test name: api/javax_swing/interactive/JTextPaneTests.html#JTextPane
      Product tested: JDK 9 b77 64bit
      OS/architecture: Mac10.10-x64 (Processor:2.4 GHz Intel Core 2 Duo;Memory:4 GB 1067 MHz DDR3)


      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression: Yes
      [If Regression] Regression introduced in release/build:JDK9b76(64bit) Failed,but JDK9b75(64bit) on same platform Passed.
      Test result on the last GAed release for this train:
      [if Fail] Test result on FCS:

      Is it a platform specific issue:
      Is it a new (previously unsupported) OS/browser/mode testing:
      [If new configuration testing] Issue specific to execution mode or OS/browser version:


      Descriptions:
      This test verifies the behavior of JTextPane setCharacterAttributes.Below find a checkbox and two buttons. Please verify that initially text typed in the textpane is bold. Also verify that when you highlight that text and click the Set button the highlighted text is underlined and bolded. Next check the checkbox and click the Set button and verify the text is underlined and NOT bolded.It may be necessary to highlight the text again after interacting with other components in the test frame.

      Actual behavior:
      1.Highlight the text and click the Set button the highlighted text is underlined and bolded ,but the highlighted text jumps a few columns automatically.refer to JTextPane.jpg and right picture refer to JtextPane-right.jpg.
      2.There is the same issue without the options "-client -Xcomp -Xbatch".

        1. JTextPane.jpg
          73 kB
          Tony Li
        2. JTextPane-right.jpg
          74 kB
          Tony Li

            ssadetsky Semyon Sadetsky (Inactive)
            tolli Tony Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: