classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Patch for JEditorPane


From: Anthony Balkissoon
Subject: [cp-patches] FYI: Patch for JEditorPane
Date: Thu, 08 Dec 2005 15:02:57 -0500

This patch accompanies the new tests in
gnu.testlet.javax.swing.JEditorPane.ContentType

This patch makes JEditorPane handle different content types properly,
using the appropriate EditorKit for different types.  This will allow
Lillian and myself to write test apps for html using JEditorPane because
now it will use HTMLEditorKit to display the content.

2005-12-08  Anthony Balkissoon  <address@hidden>

        * javax/swing/JEditorPane.java:
        (registerMap): New field.
        (editorMap): New field.
        (JEditorPane()): Call init instead of setEditorKit.
        (JEditorPane(String, String)): Likewise.
        (init): New method.
        (createEditorKitForContentType): Implemented and documented.
        (getEditorKitClassNameForContentType): Likewise.
        (getEditorKitForContentType): Likewise.
        (registerEditorKitForContentType): Likewise.
        (replaceSelection): Call super (this is temporary until the real
        implementation happens.  There is already a TODO noting that this needs
        to be implemented.
        (setEditorKitForContentType): Implemented and documented.

--Tony

Attachment: JEditorPaneContentTypes.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]