J2ME中文教程 7 开发无线网络应用程序[18]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

    public void setMessage(Message message)

    {

        this.message = message;

    }

    public void displayAlert(String text, AlertType type, Displayable disp)

    {

        Alert alert = new Alert("Application Error");

        alert.setString(text);

        alert.setType(type);

        alert.setTimeout(2000);

        display.setCurrent(alert, disp);

    }

 

    public ContentForm getContentForm()

    {

        return contentForm;

    }

    public Display getDisplay()

    {

        return display;

    }

 

    public MainForm getMainForm()

    {

        return mainForm;

    }

    public void initMIDlet()

    {

        MailThread t = new MailThread(this);

        t.start();

本文关键:J2ME中文教程 7 开发无线网络应用程序
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top