錯誤:`The type EventModelDemo must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent)`
方法名寫錯:`public void actionPerform(ActionEvent e)` → 少了 `d`。
public void actionPerformed(ActionEvent e) { // 加 d
if (e.getSource() == b1) {
tips.setText("你單擊了\"" + b1.getText() + "\"");
} else if (e.getSource() == b2) {
tips.setText("你單擊了\"" + b2.getText() + "\"");
}
}