JAVA

프로그래밍 2009. 3. 20. 15:27


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) {}
}

'프로그래밍' 카테고리의 다른 글

JAVA  (0) 2009.03.31
JAVA  (2) 2009.03.27
JAVA  (0) 2009.03.26
JAVA  (0) 2009.03.23
JAVA  (0) 2009.03.22
JAVA  (0) 2009.03.19
JAVA  (1) 2009.03.17
JAVA  (0) 2009.03.16
JAVA  (1) 2009.03.13
JAVA  (0) 2009.03.12

설정

트랙백

댓글