How can we determine the width and height of my applet?- Applet tags have attributes width and height with which we can determine their dimensions. - When applet is running inside a web browser the size of an applet is set by the height and width attributes and cannot be changed by the applet. - The 'getSize()' method is retrieved the size of an applet. - The 'getSize()' method is inherits from 'java.awt.Component.getSize()' and returns a 'java.awt.Dimension object.
|