[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: FYI: fix Applet size reporting
From: |
Thomas Fitzsimmons |
Subject: |
Patch: FYI: fix Applet size reporting |
Date: |
Thu, 29 Apr 2004 13:46:17 -0400 |
Hi,
This patch fixes a problem with how applets report their size. If the
applet stub is not set, then Applet should use Panel's implementation of
preferredSize and minimumSize. I just committed this to CVS HEAD.
Tom
2004-04-29 Thomas Fitzsimmons <address@hidden>
* java/applet/Applet.java (preferredSize): Call parent's
preferredSize if the applet stub is null.
(minimumSize): Likewise for parent's minimumSize.
Index: java/applet/Applet.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/applet/Applet.java,v
retrieving revision 1.3.36.3
diff -u -r1.3.36.3 Applet.java
--- java/applet/Applet.java 16 Mar 2004 04:43:35 -0000 1.3.36.3
+++ java/applet/Applet.java 28 Apr 2004 16:35:36 -0000
@@ -483,7 +483,7 @@
*/
public Dimension preferredSize()
{
- return getDimensions ();
+ return stub == null ? super.preferredSize () : getDimensions ();
}
/**
@@ -494,7 +494,7 @@
*/
public Dimension minimumSize()
{
- return getDimensions ();
+ return stub == null ? super.minimumSize () : getDimensions ();
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch: FYI: fix Applet size reporting,
Thomas Fitzsimmons <=