1.

How Can We Determine The Width And Height Of A Applet?

Answer»
  • 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.



Discussion

No Comment Found