±Û¾´ÀÌ :À̽¹è 1998³â 1¿ù 06ÀÏ 14:02:32
°£´ÜÇÑ ¾ÖÇø´À» Â¥ º¸¾Ò´Âµ¥¿ä.
import java.awt.*;
import java.applet.*;
public class TestLabel extends Applet
{
Label greetLabel;
public void init()
{
add(new Button("ok"));
Label greetLabel = new Label("hi~~~",Label.RIGHT);
}
public boolean action(Event event, Object KindAction)
{
if (!(event.target instanceof Button))
{
return false;
}
{
setBackground(Color.red);
Label greetLabel = new Label("test",Label.RIGHT);
add(greetLabel);
}
return true;
}
}
±×·±µ¥.. setBackground´Â Àß µÇ´Âµ¥..
greetLabelÀÌ ¾È»ý±â³×¿ä.
´äº¯Á» ºÎŹµå¸®°Ú½À´Ï´Ù.
±×·³..