검색결과 리스트
전체 글에 해당되는 글 238건
- 2009.03.17 JAVA 1
글
JAVA
import java.io.IOException;
import org.kwis.msp.lcdui.*;
import org.kwis.msp.lwc.*;
public class LabelEx extends Jlet{
ShellComponent shell = new ShellComponent();
FormComponent form = new FormComponent();
LabelComponent label1 = new LabelComponent();
LabelComponent label2 = new LabelComponent();
LabelComponent label3 = new LabelComponent("유관순");
protected void startApp(String args[]){
LabelSet_1(); LabelSet_2(); LabelSet_3();
shell.addComponent(form);
shell.show();
}
protected void destroyApp(boolean b){}
protected void LabelSet_1(){
label1.setLabel("Label Component");
form.addComponent(label1);
}
protected void LabelSet_2(){
label2.setLabel(label1.getLabel());
form.addComponent(label2);
}
protected void LabelSet_3(){
try{
Image img = Image.createImage("yoo.gif");
label3.setImage(img);
}catch(IOException e){}
form.addComponent(label3);
form.setGab(10);
}
}