• 大小: 3.67MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-15
  • 语言: 其他
  • 标签: J2ME教程  

资源简介

从入门到精通J2ME教程,教程系统简洁易懂,非常适合适合初学者。

资源截图

代码片段和文件信息

package xianjian;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;


public class AboutCanvas extends Canvas {
private final String AboutContent[] = {
        “仙剑奇侠传“
        “版本号:V1.0“
        ““
        “程序设计:“
        “IMTI“
    };
private int y = 0;
private int d;

public AboutCanvas() {
this.d=this.getHeight();
this.setFullScreenMode(true);
new AboutTh().start();
}

protected void paint(Graphics g) {
g.fillRect(0 0 getWidth() getHeight());
for(int i=0;i<4;i++){
for(int j=0;j<4;j++){
g.drawImage(XianJianImage.imgBackXianJianImage.imgBack.getWidth()*iXianJianImage.imgBack.getHeight()*jGraphics.LEFT|Graphics.TOP);
}
}
g.setFont(Font.getFont(Font.FACE_SYSTEMFont.style_BOLDFont.SIZE_LARGE));
g.setColor(0xffff00);
for(int i=0;i g.drawString(AboutContent[i]this.getWidth()/2y+dGraphics.HCENTER|Graphics.TOP);
y+=20;
}
g.drawImage(XianJianImage.imgLogothis.getWidth()/219*AboutContent.length+d+this.getHeight()/2Graphics.HCENTER|Graphics.TOP);
g.setColor(0x000000);
g.fillRect(0 getHeight()-20 getWidth() 20);
g.fillRect(0 0 getWidth() 20);
g.setColor(0xffffff);
g.setFont(Font.getFont(Font.FACE_SYSTEMFont.style_PLAINFont.SIZE_LARGE));
g.drawString(“返回“getWidth()getHeight()Graphics.RIGHT|Graphics.BOTTOM);
y=0;
}
protected void keyPressed(int key) {
switch(key){
case -7:
XianJianLet.dis.setCurrent(new MenuCanvas());
break;
}
}
protected void keyReleased(int key) {

}
class AboutTh extends Thread{
public void run() {
while(d+20*AboutContent.length+20>0){
d--;
repaint();
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     579072  2008-08-20 09:10  j2me-PPT\game\第一章 J2ME游戏编程.ppt

     文件     578560  2008-08-20 23:33  j2me-PPT\game\第三章 3D游戏开发入门.ppt

     文件     504320  2008-07-30 12:36  j2me-PPT\game\第二章 多媒体开发.ppt

     目录          0  2009-02-23 10:34  j2me-PPT\game

     文件      63514  2008-07-01 19:53  j2me-PPT\j2me-bluetooth.jpg

     文件       3431  2008-08-20 10:35  j2me-PPT\J2me_Picture\01.png

     文件       3718  2008-08-20 10:35  j2me-PPT\J2me_Picture\02.png

     文件       3360  2008-08-20 10:45  j2me-PPT\J2me_Picture\03.png

     文件       3668  2008-08-20 10:49  j2me-PPT\J2me_Picture\04.png

     文件       4229  2008-08-20 10:50  j2me-PPT\J2me_Picture\05.png

     文件       3232  2008-08-20 10:53  j2me-PPT\J2me_Picture\06.png

     文件       3254  2008-08-20 10:54  j2me-PPT\J2me_Picture\07.png

     文件       3116  2008-08-20 10:54  j2me-PPT\J2me_Picture\08.png

     文件      36100  2008-07-08 20:32  j2me-PPT\J2me_Picture\1.png

     文件       8066  2008-08-20 11:13  j2me-PPT\J2me_Picture\back.png

     文件       2711  2005-12-22 12:02  j2me-PPT\J2me_Picture\p1.png

     文件       2692  2005-12-22 12:02  j2me-PPT\J2me_Picture\p2.png

     文件       2562  2005-12-22 12:02  j2me-PPT\J2me_Picture\p3.png

     文件       2659  2005-12-22 12:02  j2me-PPT\J2me_Picture\p4.png

     文件       2987  2005-12-22 12:02  j2me-PPT\J2me_Picture\p5.png

     文件       3772  2008-08-20 11:04  j2me-PPT\J2me_Picture\qt1.png

     文件       3655  2008-08-20 11:05  j2me-PPT\J2me_Picture\qt2.png

     文件       3791  2008-08-20 11:06  j2me-PPT\J2me_Picture\qt3.png

     文件       5025  2008-08-20 17:04  j2me-PPT\J2me_Picture\qtback.png

    ..A.SH.     50176  2008-11-12 21:00  j2me-PPT\J2me_Picture\Thumbs.db

     文件      56989  2007-11-23 09:26  j2me-PPT\J2me_Picture\wel.PNG

     目录          0  2009-02-23 10:34  j2me-PPT\J2me_Picture

     文件       3339  2006-11-10 15:35  j2me-PPT\xianjian2008New(完整)\audio\menu.mid

     文件       6217  2006-11-10 18:06  j2me-PPT\xianjian2008New(完整)\audio\xj1.mid

     目录          0  2009-02-23 10:34  j2me-PPT\xianjian2008New(完整)\audio

............此处省略390个文件信息

评论

共有 条评论