1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
/* Resize Applet Window Example This java example shows how to resize an aplet window using resize method of an applet class. */ /* <applet code="ResizeAppletWindowExample" width=200 height=200> </applet> */ import java.applet.Applet; import java.awt.Graphics; public class ResizeAppletWindowExample extends Applet{ public void paint(Graphics g){ /* * To resize an applet window use, * void resize(int x, int y) method of an applet class. */ resize(300,300); g.drawString("Window has been resized to 300,300", 50, 50); } } |
Example Output
Muy Bueno xD
thanks, it helped me a lot 🙂