📄 scrollitem.java
字号:
package opusmicro.demos.scroll3;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
public class ScrollItem {
private String text;
int height=26;
public ScrollItem(String text){
this.text = text;
}
public void paint(Graphics g, int x, int y, int w, int h, boolean focus){
if(focus){
g.setColor(0xffff);
}else{
g.setColor(0x10ff);
}
// g.fillRect(x, y, w, height);
g.fillRect(x, y, w, h);
if(text!=null){
g.setColor(0);
g.drawString(text, x+5, (y+Font.getDefaultFont().getHeight()/2), g.LEFT|g.TOP);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -