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

JEditorPane doc does not specify reaction on invalid type of the content

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.5.1



      Name: akC57697 Date: 12/18/98



          The javax.swing.JEditorPane doc does not specify exactly
       c-tor reaction on invalid type of the content.
       

      The javadoc says:
      public JEditorPane(String type,
                         String text)

          Creates a JEditorPane that has been initialized to the given text.
          This is a convenience constructor that
          calls the setContentType and setText methods.
          Parameters:
             type - mime type of the given text.
             text - the text to initialize with.

      public final void setContentType(String type)

          Sets the type of content that this editor handles. This calls
          getEditorKitForContentType, and then setEditorKit if an editor <--
          kit can be successfully located. This is mostly convenience
          method that can be used as an alternative to calling setEditorKit
          directly.

          If there is a charset definition specified as a parameter of the
          content type specification, it will be used when loading input
          streams using the associated EditorKit.
          ...
          Parameters:
             type - the non-null mime type for the content editing support.


        The constructor throws NullPointerException (bugId 4198136).


      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            akuzminorcl Alexander Kuzmin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: