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  <[EMAIL PROTECTED]>

        * 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()
 
        /**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to