By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

J2ME code not running properly

P: n/a
In the progrram below I want that it should show filling of Gauge bars
one by one just like at the time of loading.I am using J2ME Wireless
Toolkit 1.0.4 with KToolbar.Here is the program code.So kindly help

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class MyGauge extends MIDlet implements CommandListener {
Display display;
int i=0;
Command start=new Command("Start",Command.SCREEN,1);
Form frm=new Form("");
Gauge gauge = new Gauge ("Loading... Please wait.",false,7,0);
public MyGauge() {
display = Display.getDisplay(this);
public void startApp() {
public void destroyApp(boolean unconditional) {
public void pauseApp() {
public void commandAction(Command c,Displayable d) {
try {

for (int j=0;j<=7;j++) {
catch(InterruptedException ie){
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.