/**
总按钮
@2007426
*/
/**
自己写个按钮类吧
*/
package com.sword;
import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.lcdui.game.*;
public class AllButton extends GameCanvas implements Runnable{
public AllButton(){
super(true);
}
/**
创建按钮
*/
public Image CreateButton(String s){
Image im=null;
try{
im=Image.createImage(s);
}
catch(Exception e){}
return im;
}
/**
Sprite
*/
public Sprite CreateButton(String s,int x,int y){
Sprite im=null;
try{
im=new Sprite(Image.createImage(s),x,y);
}
catch(Exception e){}
return im;
}
/**
run
*/
public void run(){}
}
评论