Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Java%20Applet%20Interview%20Questions%20and%20Answers

Question: 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:

Dimension dim = getSize();
int appletwidth = dim.width();
int appletheight = dim.height();

Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook