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

GTK:Rendered RTF document in editorpane/textpane is not visible with high contrast inverse theme.

XMLWordPrintable

      Bug Info:
      =========
      The rendered rtf document in editorpane/textpane is not visible with high contrast inverse theme.But html contents are rendering correctly.
      In RTF,the rendered text foreground color should be white but its a black.The background color of editorpane and foreground color rendered text is black so that rendered content is not visible in editorpane.


      JDK Info:
      =========
      java version "1.6.0_01-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_01-ea-b01)
      Java HotSpot(TM) Client VM (build 1.6.0_01-ea-b01, mixed mode)

      Steps to Reproduce:
      ===================
      1.Download attached java file and rtf file.
      2. Set the High contrast inverse theme
      3.Compile and execute the test by setting the GTKLookAndFeel through command line.
      ${JAVA_HOME}/bin/java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyEditorPane.
      4. Verify the rendered document inside the editor pane.

      Expected results:
      =================
      The background color for editorpane should be black and the foreground color of rendered content should be white.

      Actual results:
      ===============
      Editorpane background color is black and foreground color of rendered content is also black.

      Please find the attached image for identifying the issue.

            peterz Peter Zhelezniakov
            vthotasunw Vinay Thota (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: