Panelクラス ボタンやラベルを扱うには、Panelクラスを使う。ボタンのイベントを拾うには、ComponentListenerを使う。 class MyPanel extends Panel { Button button; MyPanel(){ button = new Button("push me!"); this.add(button); this.setComponentListener(new MyListener()); setSoftKeyListener(this); } class MyListener implements ComponentListener{ public void componentAction(Component c,int type,int param){ if(c == button){ IApplication.getCurrentApp().terminate(); } } } }