This is the simple create label example in which we create an StringItem to display the "UserId" as a label text. In the given application we are using setLabel to set the new label to the ItemString. We are replacing the new label on the place of previous label and setText on the position on the previous text. The complete source code is given below and the screenshot of the application given below for easy to understand.
The Application is as follows:


LabelMIDlet.java
import javax.microedition.midlet.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: J2ME Label Example
Post your Comment