All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 26-12-2003, 06:56 AM
ramkumar_p ramkumar_p is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
ramkumar_p is on a distinguished road
Angry menubar for PDA using J2ME

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 ramkumar_p@lycos.com.
Ads

  #2  
Old 28-12-2003, 11:54 PM
Cruizer Cruizer is offline
Registered User
 
Join Date: Dec 2002
Posts: 33
Cruizer is on a distinguished road
Like for any other platform

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);

Code:
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.

  #3  
Old 05-01-2004, 04:50 PM
ramkumar_p ramkumar_p is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
ramkumar_p is on a distinguished road
Thanx 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
 

Bookmarks

Tags
j2me, menubar, pda

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 03:55 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy