📄 gain.java
字号:
import java.io.IOException;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;
/*
* NewClass.java
*
* Created on 2007年3月23日, 下午8:38
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
*
* @author MissYou
*/
public class Gain {
private Sprite GainSprite;
/** Creates a new instance of NewClass */
public Gain() {
try{
GainSprite = new Sprite(Image.createImage("/Gain.png"));
}
catch(IOException ioe){
System.out.println("Can't load Gain file.");
}
GainSprite.defineReferencePixel(10, 7);
}
public Sprite getGainSprite(){
return GainSprite;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -