>>827
import javax.microedition.io.*;
import com.nttdocomo.ui.*;
public class PageMove extends IApplication {
StartPanel startP;
SearchPanel searchP;
public void start() {
startP = new StartPanel();
Display.setCurrent(startP);}
class StartPanel extends Panel {
AnchorButton ancBtn;
public StartPanel() {
setTitle("スタートページ");
ancBtn = new AnchorButton("検索");
add(ancBtn);
setComponentListener(new scListener());}}
class scListener implements ComponentListener {
public void componentAction(Component comp, int type, int param) {
if(BUTTON_PRESSED == type) {
if(comp == startP.ancBtn) {
searchP = new SearchPanel();
Display.setCurrent(searchP);}}}}
class SearchPanel extends Panel {
TextBox searchTBox;
Button searchBtn;
public SearchPanel() {
searchTBox = new TextBox("", 10, 1, TextBox.DISPLAY_ANY);
add(searchTBox);
searchBtn = new Button("検索");
add(searchBtn);}}}
コゼット見てくるから、あとはがんばれ。。。