在做feelguard的时候有用到自定义标签背景颜色,帖一下如何实现吧。
重写paint方法即可。
LabelField l1 = new LabelField("Alert!!!/nYou do NOT get permission to access " +
"this application.This application is protected by FeelGuard now."){
public void paint(Graphics g){
g.setBackgroundColor(Color.RED);
g.clear();
super.paint(g);
}
};
add(l1);