import javax microedition lcdui public class Splash extends Canvas pri

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import javax.microedition.lcdui.*;
public class Splash extends Canvas{
private int w, h;
private Image splash = null;
public Splash() {
setFullScreenMode(true);
w = getWidth();
h = getHeight();
try {
splash = Image.createImage("/start.png");
}catch(Exception e){
e.printStackTrace();
}
}
protected void paint(Graphics g){
g.setColor(0xFFFFFF);
g.fillRect(0, 0, w, h);
g.drawImage(splash, w/2, h/2, 3);
}
}