This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gui][PATCH]: fyi. return real width/height for JtabbedPane


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]