
Download the image and save in the package folder.

source code:
import java.io.IOException;
import javax.microedition.midlet.*;
import com.sun.lwuit.*;
import com.sun.lwuit.events.*;
import com.sun.lwuit.plaf.Border;
public class HelloMIDlet extends MIDlet implements ActionListener {
public void startApp() {
Display.init(this);
Form f = new Form("Hello, MIDlet in LWUIT!");
Label labelTextOnly = new Label("I'm Label");
labelTextOnly.getStyle().setBorder(Border.createEtchedRaised());
f.addComponent(labelTextOnly);
Label labelImage = null;
try {
labelImage = new Label(Image.createImage("/java.png"));
}
catch (IOException ex) {
ex.printStackTrace();
}
labelImage.getStyle().setBorder(Border.createLineBorder(5, 0xA0A0A0));
f.addComponent(labelImage);
Label labelTextAndImage = new Label();
labelTextAndImage.setText("Label with Text and Image");
try {
labelTextAndImage.setIcon(Image.createImage("/java.png"));
} catch (IOException ex) {
ex.printStackTrace();
}
f.addComponent(labelTextAndImage);
f.show();
Command exitCommand = new Command("Exit");
f.addCommand(exitCommand);
f.setCommandListener(this);
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
public void actionPerformed(ActionEvent ae) {
notifyDestroyed();
}
}