This patch (committed) reimplements the paramString() method to provide more detailed debugging information:

2006-04-19  David Gilbert  <[EMAIL PROTECTED]>

        * javax/swing/JProgressBar.java
        (paramString): Reimplemented.

Regards,

Dave
Index: javax/swing/JProgressBar.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/JProgressBar.java,v
retrieving revision 1.19
diff -u -r1.19 JProgressBar.java
--- javax/swing/JProgressBar.java       23 Mar 2006 21:22:50 -0000      1.19
+++ javax/swing/JProgressBar.java       19 Apr 2006 21:40:22 -0000
@@ -634,15 +634,28 @@
   }
 
   /**
-   * This method returns a string that can be used to 
-   * describe this JProgressBar. This method is usually
-   * only used for debugging purposes.
+   * Returns an implementation-dependent string describing the attributes of
+   * this <code>JProgressBar</code>.
    *
-   * @return A string that describes this JProgressBar.
+   * @return A string describing the attributes of this 
+   *     <code>JProgressBar</code> (never <code>null</code>).
    */
   protected String paramString()
   {
-    return "JProgressBar";
+    String superParamStr = super.paramString();
+    StringBuffer sb = new StringBuffer();
+    sb.append(",orientation=");
+    if (orientation == HORIZONTAL)
+      sb.append("HORIZONTAL");
+    else
+      sb.append("VERTICAL");
+    sb.append(",paintBorder=").append(isBorderPainted());
+    sb.append(",paintString=").append(isStringPainted());
+    sb.append(",progressString=");
+    if (progressString != null)
+      sb.append(progressString);
+    sb.append(",indeterminateString=").append(isIndeterminate());
+    return superParamStr + sb.toString();
   }
 
   /**

Reply via email to