iモード携帯電話用Java(iアプリ) Part 3
■ このスレッドは過去ログ倉庫に格納されています
0701デフォルトの名無しさん
NGNGやってみましたが、うまくいかないのでソースを書きます。
import com.nttdocomo.ui.*;
public class test001 extends IApplication{
static Panel1 f_panel;
static Panel2 s_panel;
public void start(){
f_panel = new Panel1();
s_panel = new Panel2();
Display.setCurrent(f_panel);
}
}
class Panel1 extends Panel implements SoftKeyListener,ComponentListener{
public Panel1(){
setTitle("一枚目");
ここで一つ目のパネルを作ります
}
public void softKeyReleased(int softKey){
switch(softKey){
ここでソフトキィの処理を書きます}
public void softKeyPressed(int softKey){}
}
abstract class Panel2 extends Panel{
public Panel2(){
setTitle("二枚目");
}
}
■ このスレッドは過去ログ倉庫に格納されています