javaPDA程序开发的一些程序,简体版代码,没有密码,是XX那本书上的代码,

源代码在线查看: tickerdemo.java

软件大小: 9873 K
上传用户: wylyyzjz
关键词: javaPDA 代码 程序开发 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*				 * @(#)TickerDemo.java	1.3 02/11/03				 *				 * Copyright (c) 2000-2002 Sun Microsystems, Inc. All rights reserved. 				 * PROPRIETARY/CONFIDENTIAL				 * Use is subject to license terms				 */												package ticker;								import javax.microedition.lcdui.*;				import javax.microedition.midlet.MIDlet;				/**				 * The Ticker Demo simply sets a rather long ticker to the screen.				 *				 * @version 2.0				 */								public class TickerDemo extends MIDlet {				    /**				     * This is the text displayed in the ticker.				     */				    private static final String TICKER_TEXT = "This is a ticker see it " +				                    "scroll along the way... On and on it goes without " +				                    "stoping even for a second!";								    protected void startApp() {				        Form mainForm = new Form("Ticker");				        Ticker t = new Ticker(TICKER_TEXT);				        mainForm.setTicker(t);       				        Display.getDisplay(this).setCurrent(mainForm);        				    }				    				    protected void destroyApp(boolean unconditional) {        				    }				    				    protected void pauseApp() {				    }    				}							

相关资源