< Prev
Next >



Resizing an Applet





We can set the size of an applet window by specifying the values of its attributes width and height in the <applet> tag. After setting of size for an applet, we can still override or alter this size of an applet window by calling the resize() method of Applet class.




Signature of resize() method


public void resize(int newWidth, int newHeight)
This method resizes the applet window by setting its width to newWidth and height to newHeight.




Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page

Notifications



COMING SOON
-
PYTHON