Can applets on different pages communicate with each other?
Submitted by: AdministratorUse 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();
Submitted by: Administrator
Dimension dim = getSize();
int appletwidth = dim.width();
int appletheight = dim.height();
Submitted by: Administrator
Read Online Java Applet Job Interview Questions And Answers
Top Java Applet Questions
☺ | What is the order of method invocation in an Applet? |
☺ | Which method is used to output a string to an applet? Which function is this method included in? |
☺ | When is update method called? |
☺ | What is an Applet? Should applets have constructors? |
☺ | What tags are mandatory when creating HTML to display an applet? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |