InterviewSolution
| 1. |
How Can You Set The Applet Size? |
|
Answer» Java applets run within their own WINDOW: Within your HTML file, you set the size of an applet window, using the <APPLET> tag's WIDTH and HEIGHT attributes. The size values you specify for each attribute are in PIXELS. For example, the following <APPLET> entry creates applet window that is 30 pixels tall by 100 pixels wide: <APPLET CODE=clock.class WIDTH=100 HEIGHT=30> </APPLET>Java applets run within their own window: Within your HTML file, you set the size of an applet window, using the <APPLET> tag's WIDTH and HEIGHT attributes. The size values you specify for each attribute are in pixels. For example, the following <APPLET> entry creates applet window that is 30 pixels tall by 100 pixels wide: |
|