diff options
Diffstat (limited to 'libjava/java/applet')
-rw-r--r-- | libjava/java/applet/Applet.java | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/libjava/java/applet/Applet.java b/libjava/java/applet/Applet.java index 009b18c..5990c63 100644 --- a/libjava/java/applet/Applet.java +++ b/libjava/java/applet/Applet.java @@ -78,11 +78,6 @@ public class Applet extends Panel private transient AppletStub stub; /** - * The dimensions passed to this applet through its HTML tag. - */ - private transient Dimension dimensions; - - /** * The accessibility context for this applet. * * @serial the accessibleContext for this @@ -462,41 +457,6 @@ public class Applet extends Panel s.defaultReadObject(); } - private Dimension getDimensions () - { - if (dimensions == null) - { - int width = Integer.parseInt(stub.getParameter("width")); - int height = Integer.parseInt(stub.getParameter("height")); - - dimensions = new Dimension(width, height); - } - - return dimensions; - } - - /** - * Returns an instance of {@link Dimension} representing the - * applet's width and height parameters. - * - * @return the applet's preferred size - */ - public Dimension preferredSize() - { - return stub == null ? super.preferredSize () : getDimensions (); - } - - /** - * Returns an instance of {@link Dimension} representing the - * applet's width and height parameters. - * - * @return the applet's minimum size - */ - public Dimension minimumSize() - { - return stub == null ? super.minimumSize () : getDimensions (); - } - /** * This class provides accessibility support for Applets, and is the * runtime type returned by {@link #getAccessibleContext()}. |