Ticker对象

import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Ticker;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


public class tickerObject extends MIDlet {

    Display display = null;
    Form f;
    public tickerObject() {
        super();
        f=new Form("Ticker Test");
        
    }

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
        // TODO Auto-generated method stub

    }

    protected void pauseApp() {
        // TODO Auto-generated method stub

    }

    protected void startApp() throws MIDletStateChangeException {
        display=Display.getDisplay(this);
        f.setTicker(new Ticker("hello..."));
        display.setCurrent(f);

    }

}

 

posted @ 2012-04-16 10:57  王春明  阅读(161)  评论(0编辑  收藏  举报