摘要: 在之前例子的基础上,我们增加新的功能:根据正确与不正确的响应来显示玩家的分数。public class ScoreLabel extends JLabel implements CharacterListener { private volatile int score = 0; private int char2type = -1; private CharacterSource generator = null, typist = null; public ScoreLabel(CharacterSource generator, CharacterSource ... 阅读全文
posted @ 2013-08-12 16:41 文酱 阅读(2576) 评论(0) 推荐(3) 编辑