hi everybody,
I'm seriously in need of your help.... Please do some favour. this is my problem.... How to develop GUI applications (Like Menubar, Gauges etc ) using MIDlets in J2ME. I'm developing for P800, P802, P900 and P902.
I got struck in this for a long time ... and i badly need some help to get rid of this.
Waiting for some early replies ... Please do the grateful
Regards,
Ramkumar
U can mail me at [email][email protected][/email].
Read up on some GUI programming for MIDP from, for example, the documentation at Sun's site http://java.sun.com.
In practice, it's not really that difficult.
* Create a Form and add Items to it.
* Then set the Form to be the current Displayable and you should be off to a flying start.
If memory serves me correctly you should be able to do something like this (warning: not compiled or checked against API docs, but should give you an idea);
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;public class TestMIDlet extends MIDlet {
private Display iDisplay = null;
private Form iForm = null;
private TextField iTextField = null;
public TestMIDlet() {
iDisplay = Display.getDisplay(this);
iForm = new Form("Title"😉;
iTextField = new TextField("Test", "Test"😉;
iForm.add(iTextField);
}
public void startApp() {
iDisplay.setCurrent(iForm);
}
public void pauseApp() {}
public void destroyApp(boolean aUnconditional) {
iForm = null;
iTextField = null;
}
}
Regards,
/Cruizer.
Hi Cruizer,
Thanx for ur reply.... I'm novice to this mobile application development using j2me so please give me a solution
I would like to explain my postion now...
I have the following stuffs for my development--
- Sun ONE studio 5 Mobile edition
- Sony Ericsson P800 J2me SDK
- Symbian OS UIQ V7.0 sdk
I wish to confirm one thing to u... I'm developing application for the big screen i.e PDA application for P800. So could u guide me for developing such application.
Waiting for ur reply
With Regards,
Ramkumar