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

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

本文简介:

            String subject = subField.getString();

            if(to == "" && subject == "")

            {

                midlet.displayAlert("Null to or sub",AlertType.WARNING,this);

            }

            else

            {

                midlet.getMessage().setTo(to);

                midlet.getMessage().setSubject(subject);

                midlet.getDisplay().setCurrent(midlet.getContentForm());

            }

        }

    }

}

 

package com.j2medev.mail;

import javax.microedition.lcdui.Command;

import javax.microedition.lcdui.CommandListener;

import javax.microedition.lcdui.Displayable;

import javax.microedition.lcdui.TextBox;

import javax.microedition.midlet.MIDlet;

 

public class ContentForm extends TextBox implements CommandListener

{

    private MailClient midlet;

    private boolean first = true;

    public static final Command sendCommand = new Command("SEND", Command.ITEM,

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

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

go top