[單項(xiàng)選擇題] 請(qǐng)?jiān)谙铝谐绦虻臋M線處填入正確的語(yǔ)句。 import java.awt.*; import java.awt,event.*; pub
[單項(xiàng)選擇題] 請(qǐng)?jiān)谙铝谐绦虻臋M線處填入正確的語(yǔ)句。 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
B.public void action(ActionEwent
C.public actionPerformed(ActionEvent
D.public void actionPerformed(ActionEvent
正確答案:D
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。