Skip to main content

accessing lwuit component made using resource bulder from code

No replies
herahadi
Offline
Joined: 2013-03-05
Points: 0

hello, i create my own form from code and then i made theme from resource editor. on that theme i added multi images named "logo.png"

how to access that multi image from my code?

here is my code:

package smsbanking;

import com.sun.lwuit.Form;
import com.sun.lwuit.Image;
import com.sun.lwuit.Label;
import com.sun.lwuit.layouts.BorderLayout;
import java.io.IOException;

/**
*
* @author herahadi
*/
public class SplashScreen extends Form{
   
   
    public SplashScreen(){
        this.setLayout(new BorderLayout());
       
       
       
        Label logoLabel = new Label(****** -> i want to use the multi image here <- ******);
       
this.addComponent(BorderLayout.CENTER,logoLabel);
       
               
        Label label = new Label("Loading...");
        this.addComponent(BorderLayout.SOUTH,label);
        this.show();
    }
}

please help me...