검색결과 리스트
전체 글에 해당되는 글 238건
- 2009.03.20 JAVA
글
JAVA
import org.kwis.msp.lcdui.Jlet;
import org.kwis.msp.lcdui.Display;
import org.kwis.msp.lwc.ShellComponent;
import org.kwis.msp.lwc.ButtonComponent;
import org.kwis.msp.lwc.LabelComponent;
public class ShellComponentExample extends Jlet{
Display displayLCD;
protected void startApp(String[] arg0){
displayLCD = Display.getDefaultDisplay();
ShellComponent shell = new ShellComponent();
LabelComponent labelTitleArea = new LabelComponent("Shell Title Area");
LabelComponent labelWorkArea = new LabelComponent("Shell Work Area");
ButtonComponent buttonCommandArea = new ButtonComponent("Shell Command Area", null);
shell.setTitle(labelTitleArea);
shell.addComponent(labelWorkArea);
shell.setCommand(buttonCommandArea,true);
displayLCD.pushCard(shell.getCard());
}
protected void destroyApp(boolean arg0) {}
}