I committed this patch, that implements getMaximumSize() in
javax.swing.plaf.basic.BasicTextUI.
This also fixes bug #13141.
2005-05-22 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicTextUI.java
(getMaximumSize): Implemented this method.
/Roman
Index: javax/swing/plaf/basic/BasicTextUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTextUI.java,v
retrieving revision 1.17
diff -u -r1.17 BasicTextUI.java
--- javax/swing/plaf/basic/BasicTextUI.java 11 May 2005 10:36:25 -0000 1.17
+++ javax/swing/plaf/basic/BasicTextUI.java 22 May 2005 15:54:28 -0000
@@ -466,7 +466,20 @@
return new Dimension((int) w, (int) h);
}
-
+
+ /**
+ * Returns the maximum size for text components that use this UI.
+ *
+ * This returns (Integer.MAX_VALUE, Integer.MAX_VALUE).
+ *
+ * @return the maximum size for text components that use this UI
+ */
+ public Dimension getMaximumSize(JComponent c)
+ {
+ // that's what Suns implementation does
+ return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
+ }
+
public final void paint(Graphics g, JComponent c)
{
paintSafely(g);
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches