网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在Swing GUI编程中,setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)语句的作用是()
A.当执行关闭窗口操作时,不做任何操作。
B.当执行关闭窗口操作时,调用WindowsListener对象并将隐藏JFrame
C.当执行关闭窗口操作时,调用WindowsListener对象并隐藏和销毁JFrame
D.当执行关闭窗口操作时,退出应用程序。
参考答案
更多 “ 在Swingensp;GUI编程中,setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)语句的作用是() A.当执行关闭窗口操作时,不做任何操作。B.当执行关闭窗口操作时,调用WindowsListener对象并将隐藏JFrameC.当执行关闭窗口操作时,调用WindowsListener对象并隐藏和销毁JFrameD.当执行关闭窗口操作时,退出应用程序。 ” 相关考题
考题
ClicktheExhibitbutton.Assumingthetaglibraryintheexhibitisimportedwiththeprefixstock,whichcustomtaginvocationoutputsthecontentsofthevariableexposedbythequotetag?()
A.;stock:quoteensp;symbol=;SUNW;ensp;/;${var}B.${var}.ensp;;stock:quoteensp;symbol=;SUNW;ensp;/;C.;stock:quoteensp;symbol=;SUNW;;.ensp;${var}.ensp;;/stock:quote;D.;stock:quoteensp;symbol=;SUNW;ensp;var=;quote;ensp;/;${quote}
考题
在SwingGUI编程中,setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)语句的作用是:()
A.当执行关闭窗口操作时,不做任何操作。B.当执行关闭窗口操作时,调用WindowsListener对象并将隐藏JFrameC.当执行关闭窗口操作时,调用WindowsListener对象并隐藏和销毁JFrameD.当执行关闭窗口操作时,退出应用程序
考题
WhichmethodintheThreadclassisusedtocreateandlaunchanewthreadofexecution?()
A.ensp;Run();B.ensp;Start();C.ensp;Execute();D.ensp;Run(Runnableensp;r);E.ensp;Start(Runnableensp;r);F.ensp;Execute(Threadensp;t);
考题
要实现关闭JFrame窗口功能需写以下哪条语句()。A.setDefaultCloseOperation(JFrame. DO_NOTHING_ON_CLOSE);B.setDefaultCloseOperation(JFrame. HIDE_ON_CLOSE);C.setDefaultCloseOperation(JFrame. DISPOSE_ON_CLOSE);D.setDefaultCloseOperation(JFrame. EXIT_ON_CLOSE);
考题
在计算机领域中, “图形用户界面"、"应用编程接口"、"操作系统"、"文件分配表"、“虚拟机"的英文缩写名为()。A.GUI、API、OS、FAT、VMB.DBMS、NTFS、VR、I/O、VMC.GUI、DBMS、VM、FAT、I/OD.OS、FAT、API、VM
考题
设置JFrame窗口居中的代码是()A.setSize(340,200);B.this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);C.setLocationRelativeTo(null);D.setVisible(true);
考题
使用任意一种编程语言实现图的着色问题(不必有GUI部分)
热门标签
最新试卷