±Û¾´ÀÌ :ÀüÀç¿Ï 1998³â 9¿ù 03ÀÏ 13:32:23
In Reply to: ¾ÖÇø´ÀÇ Å©±â¸¦ ±¸ÇÏ·Á°í Çϴµ¥¿ä.. posted by À̱¤¼ö on 1998³â 9¿ù 03ÀÏ 02:54:09:
¿¹Á¦¸¦ Çѹø¸¸µé¾î ºÃ¾î¿ä..
µµ¿òÀÌ µÇ¾úÀ¸¸é ÇÕ´Ï´Ù.
//**** start here 'test.java' **************
import java.applet.*;
import java.awt.*;
public class test extends Applet
{
public void init()
{
Dimension d = getSize();
System.out.println("Width is.... : " + d.width);
System.out.println("Height is... : " + d.height);
}
}
//**** end here 'test.java'**************
//**** start here 'test.html' **************
<applet code="test.class" width=300 height=300></applet>
//**** end here 'test.html' **************
ÀÌ ¿¹Á¦¿¡¼ 'test.html'ÀÇ width¿Í height¸¦ º¯°æÇØ
°¡¸é¼ ¾ÖÇø´À» ½ÇÇà½ÃÄÑ º¸¼¼¿ä.... ±×·³...