DrawOther.java
上传用户:public
上传日期:2010-01-27
资源大小:484k
文件大小:1k
- package Draw;
- import javax.microedition.lcdui.*;
- public class DrawOther {
- private Image DingImg; /////////////////////钉板图片
- private Image TitleImg;
- public DrawOther() {
- super();
- try {
- jbInit();
- }
- catch (Exception ex) {
- }
- }
- private void jbInit() throws Exception {
- DingImg = Image.createImage("/res/dingban.png");
- TitleImg = Image.createImage("/res/title.png");
- }
- public void DrawSelf(Graphics g,int screenw,int screenh){
- g.setColor(182, 182, 170); ////////////////////////////上钉板上方颜色
- g.fillRect(0, 0, 180, 10); /////////////////////////////铺满上钉板上方
- g.drawImage(DingImg, 0, 10, 0); ////////////////////////画上钉板
- g.drawImage(TitleImg, 60, 0, 0); ///////////////////////画标题“男人的游戏”
- }
- }