⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movinomidlet.java

📁 一个不错的多媒体传输程序
💻 JAVA
字号:
/* * Movino J2ME Client * Copyright (C) 2007  Johannes Berg *  * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. *  * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. */package org.movino;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.CommandListener;import javax.microedition.lcdui.Display;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.Form;import javax.microedition.midlet.MIDlet;import javax.microedition.midlet.MIDletStateChangeException;/** * The midlet class that handles creation and destruction of the application. *  * @author jberg * */public class MovinoMidlet extends MIDlet implements CommandListener{		public static MovinoMidlet movinoMidlet;		public MovinoMidlet(){		movinoMidlet=this;	}		protected void destroyApp(boolean arg0) throws MIDletStateChangeException {	}	protected void pauseApp() {	}	protected void startApp() throws MIDletStateChangeException {		try{			Showable s = (Showable)Class.forName("org.movino.SplashScreen").newInstance();			s.show(Display.getDisplay(this));		} catch(Throwable t){			libraryFailure();		}	}		public void libraryFailure(){		Form f = new Form("Movino exiting");		f.append("Library loading failed\nCheck that your device supports MIDP 2.0 and MMAPI");		f.addCommand(new Command("Exit",Command.OK,1));		f.setCommandListener(this);		Display.getDisplay(this).setCurrent(f);	}	public void commandAction(Command arg0, Displayable arg1) {		try { destroyApp(false);		} catch (MIDletStateChangeException e) {}		notifyDestroyed();	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -