This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui][PATCH]: fyi. return real width/height for JtabbedPane
- From: Kim Ho <kho at redhat dot com>
- To: java-patches <java-patches at gcc dot gnu dot org>
- Date: 23 Mar 2004 14:01:11 -0500
- Subject: [gui][PATCH]: fyi. return real width/height for JtabbedPane
- Organization:
Hi,
Left in a hard coded value while testing. Patch removes it.
Cheers,
Kim
2004-03-23 Kim Ho <kho@redhat.com>
* javax/swing/plaf/basic/BasicTabbedPaneUI.java:
(calculateSizes): Return real width and height.
Index: javax/swing/plaf/basic/BasicTabbedPaneUI.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java,v
retrieving revision 1.3.16.2
diff -u -r1.3.16.2 BasicTabbedPaneUI.java
--- javax/swing/plaf/basic/BasicTabbedPaneUI.java 23 Mar 2004 15:31:03 -0000 1.3.16.2
+++ javax/swing/plaf/basic/BasicTabbedPaneUI.java 23 Mar 2004 18:59:00 -0000
@@ -290,7 +290,7 @@
width = tabAreaWidth + componentWidth;
}
- return new Dimension(300, 200);
+ return new Dimension(width, height);
}
// if tab placement is LEFT OR RIGHT, they share width.