This patch (committed) reimplements the paramString() method to provide better
debugging info:
2006-05-15 David Gilbert <[EMAIL PROTECTED]>
* javax/swing/JTabbedPane.java
(paramString): Reimplemented,
(getAccessibleContext): Added API docs.
Regards,
Dave
Index: javax/swing/JTabbedPane.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/JTabbedPane.java,v
retrieving revision 1.37
diff -u -r1.37 JTabbedPane.java
--- javax/swing/JTabbedPane.java 20 Apr 2006 07:02:00 -0000 1.37
+++ javax/swing/JTabbedPane.java 15 May 2006 05:09:04 -0000
@@ -1,5 +1,5 @@
/* JTabbedPane.java --
- Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2004, 2005, 2006, Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -1623,20 +1623,35 @@
}
/**
- * This method returns a string representation of this JTabbedPane. It is
- * mainly used for debugging purposes.
+ * Returns a string describing the attributes for the
+ * <code>JTabbedPane</code> component, for use in debugging. The return
+ * value is guaranteed to be non-<code>null</code>, but the format of the
+ * string may vary between implementations.
*
- * @return A string representation of this JTabbedPane.
+ * @return A string describing the attributes of the
+ * <code>JTabbedPane</code>.
*/
protected String paramString()
{
- return "JTabbedPane";
+ StringBuffer sb = new StringBuffer(super.paramString());
+ sb.append(",tabPlacement=");
+ if (tabPlacement == TOP)
+ sb.append("TOP");
+ if (tabPlacement == BOTTOM)
+ sb.append("BOTTOM");
+ if (tabPlacement == LEFT)
+ sb.append("LEFT");
+ if (tabPlacement == RIGHT)
+ sb.append("RIGHT");
+ return sb.toString();
}
/**
- * DOCUMENT ME!
+ * Returns the object that provides accessibility features for this
+ * <code>JTabbedPane</code> component.
*
- * @return DOCUMENT ME!
+ * @return The accessible context (an instance of
+ * [EMAIL PROTECTED] AccessibleJTabbedPane}).
*/
public AccessibleContext getAccessibleContext()
{