Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 移动互联网  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 求救求救!!!"启动"期间发生内部错误.
860123





发贴: 2
积分: 0
于 2008-01-25 12:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我用eclipse搭建的J2ME开发环境,但在运行程序后发现无法正常运行,警告是:在"启动"期间发生内部错误.我的程序其他地方没错,就是一直出现这 种问题,请哪位高手帮帮忙,谢谢了.我在线等.
源代码:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.io.*;

public class aa extends MIDlet {
private Display display;
private TextField TFCity,TFStart,TFEnd;
private String City,Start,End;
private Form inputForm,returnForm;
private Alert anAlert;
private Image anImage;

  public aa() {
  TFCity=new TextField("sldjfldsaf","",30,TextField.ANY);
  TFStart=new TextField("start:","",30,TextField.ANY);
  TFEnd=new TextField("End:","",30,TextField.ANY);
  
   try{
     Image.createImage("/0027.png");
   }
   catch(IOException ioe)
   {
     ioe.printStackTrace();
    
   }
   anAlert=new Alert("sdflkasjdlasd","dsafsdfasdfasdfasdfsdfdlkfjdaskaljf",anImage,AlertType.CONFIRMATION);
  
   inputForm=new Form("输入查找的信息:");
   returnForm=new Form("查询结果:");
   inputForm.append(TFCity);
   inputForm.append(TFStart);
   inputForm.append(TFEnd);
  
  }

  protected void startApp() throws MIDletStateChangeException {
    anAlert.setTimeout(Alert.FOREVER);
    display=Display.getDisplay(this);
    display.setCurrent(anAlert,inputForm);
    

  }
protected void pauseApp() {
    
    
  }

  protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
    
    
  }

  
  

  

}




话题树型展开
人气 标题 作者 字数 发贴时间
9230 求救求救!!!"启动"期间发生内部错误. 860123 1380 2008-01-25 12:48

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923