- 博客(1)
- 资源 (3)
- 收藏
- 关注
原创 j2me求注释
<br />import javax.microedition.lcdui.*;<br />public class AboutForm extends Form implements CommandListener{<br /> String str1="作者:aaa/n"+"制作时间:2010年9日/n"+"当前时间:";<br /> DateField datetime;<br /> Image img1;<br /> Command backcmd;<br /> public
2010-12-25 15:59:00 219
c语言,基础,练习,大小写转换
#include
void main()
{
char c1,c2,c3,c4,c5; /*定义字符类型的变量c1,c2,c3,c4,c5 */
c1='c'; /*赋值*/
c2='h';
c3='i';
c4='n';
c5='a';
c1=c1-32;
2011-01-22
c语言水仙花练习#include<stdio.h>
水仙花c语言#include<stdio.h>
#include <math.h>
void main() /*主函数*/
{
int num, a,b,c; /* 定义a,b,c为整形函数 */
for(a=1;a<=9;a++) /*a是百位上数字,范围是1~9*/
2011-01-22
j2meshouji
public class WelcomForm extends Canvas implements CommandListener
{
Image img1;
Command gocmd;
Timer time=new Timer();
Font f;
int y;
public WelcomForm()
{
setTitle("欢迎界面");
try{
img1=Image.createImage("/_home_8.png");
}catch(IOException e)
{ System.out.println("找不到图片");}
y=getHeight()/2-img1.getHeight()/2;
// Ticker t=new Ticker
f= Font.getFont(Font.FACE_SYSTEM,Font.STYLE_BOLD|Font.STYLE_ITALIC,Font.SIZE_MEDIUM);
gocmd=new Command("进入",Command.OK,1);
this.addCommand(gocmd);
this.setCommandListener(this);
time.schedule(new TimerTask()
{
public void run()
{
repaint();
y=y+5;
if(y>getHeight())
{
time.cancel();
MainClass.mainDis.showMain();
}
}
},0,150);
}
public void paint(Graphics g)
{
int Width=this.getWidth();
int height=this.getHeight();
g.setClip(0, y, Width, 5);
2010-12-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人