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

REGRESSION : setPage method in JTextPane throws IllegalArgumentException - Must be StyleEditorKit

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.6.0-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b14)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b14, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      LinuxAS 3.0

      A DESCRIPTION OF THE PROBLEM :
      When we create a JTextPane and set a text file using setPage method it throws IllegalArgumentException - Must be StyleEditorKit.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Execute the attached testcase.
      2. Once you execute the testcase attached with this bug with Mustang build b14 you can see a IllegalArgumentException thrown. But this is doesn't happen till Mustang build b13.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No Exception.

      ACTUAL -
      IllegalArgumentException - Must be StyleEditorKit is thrown.


      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2004-12-07 11:13:56 GMT

            idk Igor Kushnirskiy (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: