问答题 本程序是一个Applet,其中继承Button类定义了一个竖按钮类,单击按钮,则循环改变按钮的背景色,如图所示。
【正确答案】
【答案解析】第1处:extends Button implements ActionListener
第2处:addActionListener(this)