第4题
下面程序的运行时,在窗口中单击“Close”按钮关闭窗口,请阅读程序,在⑥~ ⑨处补充相应的内容,使整个程序能够正常运行。 public class MyFrame extends【 ⑥ 】 { private JButton button1, button2, button3; public MyFrame() { this.setLayout(new FlowLayout()); button1 = new JButton("Ok"); button2 = new JButton("Open"); button3 = new JButton("Close"); this.add(button1); this.add(button2); this.add(button3); button3.【 ⑦ 】; this.setSize(160, 106); this.setVisible(【 ⑧ 】); } public static void main(String[] args) { MyFrame t = 【 ⑨ 】 MyFrame (); } Class Monitor implements ActionListener { public void actionPerformed(ActionEvent e){ System.exit(0); } } } 请问:⑥ 空填入的正确内容是:
A、JFrame
B、JButton
C、Class
D、Object
第8题
A. 关闭当前工作簿
B. 关闭当前工作表
C. 回到工作表编辑窗口
D. 退出Excel2003程序
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!