Archive for the 'j2me gui' Category
/*————————————————–
* ViewPngThread.java
*
* Download and view a png file. The download is
* done in the background with a separate thread
*
* Example from the book: Core J2ME Technology
* Copyright John W. Muchow http://www.CoreJ2ME.com
* You may use/modify for any non-commercial purpose
*————————————————-*/
[…]
July 23rd, 2007 | Posted in j2me example, j2me gui, j2me multimedia, j2me sample, j2me source code | 1 Comment
/*————————————————–* GameActions.java** Canvas for processing game actions** Example from the book: Core J2ME Technology* Copyright John W. Muchow http://www.CoreJ2ME.com* You may use/modify for any non-commercial purpose*————————————————-*/ import javax.microedition.midlet.*;import javax.microedition.lcdui.*;
public class GameActions extends MIDlet{ private Display display; // The display […]
July 19th, 2007 | Posted in j2me example, j2me gui, j2me sample, j2me source code | No Comments
//jad file (please verify the jar size)/*MIDlet-Name: DisplayAlertMIDlet-Version: 1.0MIDlet-Vendor: MyCompanyMIDlet-Jar-URL: DisplayAlert.jarMIDlet-1: DisplayAlert, , DisplayAlertMicroEdition-Configuration: CLDC-1.0MicroEdition-Profile: MIDP-1.0MIDlet-JAR-SIZE: 100
*/import javax.microedition.lcdui.Alert;import javax.microedition.lcdui.AlertType;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;
public class DisplayAlert extends MIDlet implements CommandListener { private Display display;
private Alert alert;
private Form form = new Form(”Throw Exception”);
private Command exit = new […]
July 19th, 2007 | Posted in j2me example, j2me gui, j2me multimedia, j2me sample, j2me source code | No Comments
/*————————————————–* AccessingCommands.java** Example from the book: Core J2ME Technology* Copyright John W. Muchow http://www.CoreJ2ME.com* You may use/modify for any non-commercial purpose*————————————————-*/import javax.microedition.midlet.*;import javax.microedition.lcdui.*;
public class AccessingCommands extends MIDlet implements CommandListener{ private Display display; // Reference to Display object private Form fmMain; […]
July 19th, 2007 | Posted in j2me example, j2me gui, j2me multimedia, j2me sample, j2me source code | 1 Comment
/* * @(#)Sample.java 1.9 01/06/08 * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved. */
import javax.microedition.midlet.*;import javax.microedition.lcdui.*;
/* * A quick sample of graphics, commands, and event handling. */public class SampleCanvasMIDlet extends MIDlet implements CommandListener { Display display; Command exitCommand; Command backCommand; […]
July 19th, 2007 | Posted in j2me example, j2me gui, j2me sample, j2me source code | 4 Comments
/*J2ME in a NutshellBy Kim TopleyISBN: 0-596-00253-X
*/
import java.util.Timer;import java.util.TimerTask;import javax.microedition.lcdui.Canvas;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.lcdui.Gauge;import javax.microedition.lcdui.Graphics;import javax.microedition.lcdui.Item;import javax.microedition.lcdui.ItemStateListener;import javax.microedition.midlet.MIDlet;
public class AnimationMIDlet extends MIDlet implements CommandListener, ItemStateListener {
[…]
July 16th, 2007 | Posted in j2me example, j2me gui, j2me multimedia, j2me sample, j2me source code | 2 Comments
/*————————————————–* ChoiceGroupWithImages.java** Example from the book: Core J2ME Technology* Copyright John W. Muchow http://www.CoreJ2ME.com* You may use/modify for any non-commercial purpose*————————————————-*/import javax.microedition.midlet.*;import javax.microedition.lcdui.*;
public class ChoiceGroupWithImages extends MIDlet implements CommandListener{ private Display display; // Reference to display object private Form fmMain; […]
July 16th, 2007 | Posted in j2me example, j2me gui, j2me sample, j2me source code | 1 Comment
/*————————————————–* MultipleChoiceGroup.java** Example from the book: Core J2ME Technology* Copyright John W. Muchow http://www.CoreJ2ME.com* You may use/modify for any non-commercial purpose*————————————————-*/import javax.microedition.midlet.*;import javax.microedition.lcdui.*;
public class MultipleChoiceGroup extends MIDlet implements ItemStateListener, CommandListener{ private Display display; // Reference to display object private Form fmMain; […]
July 16th, 2007 | Posted in j2me example, j2me gui, j2me sample, j2me source code | 2 Comments
/*Learning Wireless JavaHelp for New J2ME DevelopersBy Qusay MahmoudISBN: 0-596-00243-2
*/import javax.microedition.lcdui.*;import javax.microedition.midlet.*;
public class GuiTests extends MIDlet implements CommandListener { // display manager Display display = null;
// a menu with items List menu = null; // main menu
// list […]
July 16th, 2007 | Posted in j2me example, j2me gui, j2me sample, j2me source code | No Comments
//jad file (please verify the jar size)/*MIDlet-Name: TextFieldCaptureMIDlet-Version: 1.0MIDlet-Vendor: MyCompanyMIDlet-Jar-URL: TextFieldCapture.jarMIDlet-1: TextFieldCapture, , TextFieldCaptureMicroEdition-Configuration: CLDC-1.0MicroEdition-Profile: MIDP-1.0MIDlet-JAR-SIZE: 100
*/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.lcdui.TextField;import javax.microedition.midlet.MIDlet;
public class TextFieldCapture extends MIDlet implements CommandListener { private Display display;
private Form form = new Form(”Sign In Please”);
private Command submit = new Command(”Submit”, Command.SCREEN, 1);
private […]
July 16th, 2007 | Posted in j2me example, j2me gui, j2me sample, j2me source code | 1 Comment