classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] [Patch][gui] JEditorPane and DefaultEditorKit


From: Michael Koch
Subject: [cp-patches] [Patch][gui] JEditorPane and DefaultEditorKit
Date: Mon, 10 Jan 2005 19:20:36 +0100
User-agent: Mutt/1.5.6+20040907i

Hi list,


I wrote the attached patch to make it possible to load text from a file
into a JEditorPane and display it.


Michael


2005-01-10  Michael Koch  <address@hidden>

        * javax/swing/JEditorPane.java
        (read): Implemented.
        (write): Likewise.
        * javax/swing/text/DefaultEditorKit.java
        (page): Renamed from page_url. Made private.
        (editorKit): Renamed from kit. Made private.
        (ctype): Removed.
        (JEditorPane): All constructors reimplemented.
        (getContentType): Use content type from editor kit.
        (getEditorKit): Return editorKit.
        (getEditorKitForContentType):Likewise.
        (getPage): Return page.
        (setContentType): Reimplemented.
        (setEditorKit): Likewise.
        (setEditorKitForContentType): Removed wrong implementation.
        (setPage): Implemented.

Attachment: swing.diff
Description: Text document


reply via email to

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