< 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 our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
C++ and Python

Ad2