网友您好, 请在下方输入框内输入要搜索的题目:
请在下列程序的横线处填入正确的语句。 import java.awt.*; import java.awt,event.*; public class ex16 { Frame. f; TextArea ta; Button btn; public static void main(String[] args) { ex16 e = new ex16(); e.m(); } public void m() { f = new Frame("ex16"); ta = new TextArea(); btn = new Button("ok"); btn.addActionListener(new MyAction()); f.add(ta, "Center"); f.add(btn, "South"); f.setSize(100, 100); f.setVisible (true); } class MyAction implements ActionListener { ______ { System. out.println (ta. getText ()); } } }
A.static void actionPcrformcd(AcfionEvent e)
B.public void action(ActionEwent e)
C.public actionPerformed(ActionEvent e)
D.public void actionPerformed(ActionEvent e)
参考答案