| 1. |
Can Applets On Different Pages Communicate With Each Other? |
|
Answer» Use the getSize() method, which the Applet class inherits from the COMPONENT class in the Java.awt package. The getSize() method returns the size of the applet as a DIMENSION object, from which you EXTRACT separate width, height fields. The following code SNIPPET explains this: Use the getSize() method, which the Applet class inherits from the Component class in the Java.awt package. The getSize() method returns the size of the applet as a Dimension object, from which you extract separate width, height fields. The following code snippet explains this: |
|