摘要:
在之前例子的基础上,我们增加新的功能:根据正确与不正确的响应来显示玩家的分数。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 ... 阅读全文