如果您还没有创建Blink项目,就应先按创建Blink项目中的说明去完成这项工作。
选择
int speed;
boolean offset;
lbl = (att == null) ? "Blink" : att;
offset = false;
g.setColor(Color.lightGray); }
if offset y = y * 2;
g.drawString(word, x, y);
if (offset) { offset = false; y = y / 2 } else { offset = true; }
下一课: