classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: implemented JTextPane.getCharacterAttributes


From: Roman Kennke
Subject: [cp-patches] FYI: implemented JTextPane.getCharacterAttributes
Date: Wed, 27 Jul 2005 17:26:44 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)

I implemented the previous dummy method getCharacterAttributes() in JTextPane. This is probably not yet correct, but still better than before.

2005-07-27  Roman Kennke  <address@hidden>

        * javax/swing/JTextPane.java
        (getCharacterAttributes): Return SimpleAttributeSet.EMPTY instead
        of null.

/Roman
Index: javax/swing/JTextPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTextPane.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- javax/swing/JTextPane.java  2 Jul 2005 20:32:49 -0000       1.5
+++ javax/swing/JTextPane.java  27 Jul 2005 14:56:54 -0000      1.6
@@ -46,6 +46,7 @@
 import javax.swing.text.Document;
 import javax.swing.text.EditorKit;
 import javax.swing.text.MutableAttributeSet;
+import javax.swing.text.SimpleAttributeSet;
 import javax.swing.text.Style;
 import javax.swing.text.StyledDocument;
 import javax.swing.text.StyledEditorKit;
@@ -195,7 +196,7 @@
         * @returns AttributeSet
         */
        public AttributeSet getCharacterAttributes() {
-               return null; // TODO
+          return SimpleAttributeSet.EMPTY; // TODO
        } // getCharacterAttributes()
 
        /**

reply via email to

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