?? gpsdemomidlet.java
字號:
package org.j4me.examples.bluetoothgps;
import javax.microedition.midlet.*;
import org.j4me.examples.ui.themes.*;
import org.j4me.ui.*;
/**
* A demonstration MIDlet for the J4ME BluetoothGPS package.
*/
public class GPSDemoMidlet
extends MIDlet
{
/* (non-Javadoc)
* @see javax.microedition.midlet.MIDlet#startApp()
*/
protected void startApp () throws MIDletStateChangeException
{
// Initialize the J4ME UI manager.
UIManager.init( this );
UIManager.setTheme( new ConsoleTheme() );
// Show the first screen.
LocationModel model = new LocationModel();
CriteriaSelectionScreen next = new CriteriaSelectionScreen( model );
next.show();
}
/* (non-Javadoc)
* @see javax.microedition.midlet.MIDlet#pauseApp()
*/
protected void pauseApp ()
{
// The application has no state so ignore pauses.
}
/* (non-Javadoc)
* @see javax.microedition.midlet.MIDlet#destroyApp(boolean)
*/
protected void destroyApp (boolean cleanup) throws MIDletStateChangeException
{
// Exit the MIDlet.
notifyDestroyed();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -