I'm facing two simple issue in lwuit
1 --> i create a image and i want to display on the form.
try {
happyImage = Image.createImage("/res/happy.png");
} catch (IOException e) {
e.printStackTrace();
}
and i also try this link http://discussion.forum.nokia.com/fo...ns-using-Lwuit too.
but i got this error
2--> I want to display a simple label at the bottom of the formHTML Code:java.io.IOException at javax.microedition.lcdui.ImmutableImage.getImageFromStream(+15) at javax.microedition.lcdui.ImmutableImage.<init>(+20) at javax.microedition.lcdui.Image.createImage(+8) at com.sun.lwuit.impl.midp.GameCanvasImplementation.createImage(+4) at com.sun.lwuit.Image.createImage(+14) at com.test.form.firstForm.startApp(+131) at javax.microedition.midlet.MIDletProxy.startApp(+7) at com.sun.midp.midlet.Scheduler.schedule(+270) at com.sun.midp.main.Main.runLocalClass(+28) at com.sun.midp.main.Main.main(+80)
but i display on the top of the form only. label doesn't change.Code:sampleLabel = new Label("ThisIsLabel"); sampleLabel.setTextPosition(Component.BOTTOM); sampleForm.addComponent(sampleLabel);
i'm very very new to lwuit. please help me
kumar

Reply With Quote



