JAVA期末考试题库 - 百度文库 ر

ĸĬϱڣ a. CENTER 90.BorderLayoutֹУ뽫ťӵ·Ӧʹõǣ c. SOUTH

91.ijӿж5ֳ¼ֻõеһַʵָýӿڵУԣ

b. ȤķΪգֻʵõķ

92.ҪıIJֹʹõķǣ c. getContentPane

93.pvΪһJPanelʵ轫䲼ֹΪֱBoxLayoutӦʹõǣ c. pv.setLayout(new BoxLayout(pv, BoxLayout.Y_AXIS));

93.ݴĬϲֹǣ b. BorderLayout

94.Java¼ģУ¼ӿں¼Ĺϵǣ

d. ¼ʵӦ¼ӿڵֻ࣬ӦʵΪ

95.Уıǣ b. Jlabel 96.JFileChooserǣ c. ļԻ 97.Ҫıɫѡõķǣ b.

17

setBackground

98.˵Уȷǣ a. ڶJCheckBoxǼһť飬ֻܽеѡ

99.Ϊframe˵Ϊmbʵֽ˵ŵϷǣ

a. frame.setJMenuBar(mb);

100.ϿҪΪɱ༭Ͽ򣬲õķǣ a. setEditable

101.䡰JDialog d=new JDialog(frame, information, true);ǣ

c. һΪinformationģʽԻ򣬸öԻΪframe

102.Ҫʾʽ˵õķǣ c. show 103.ҪʾʾԵıϢͼ꣬õǣ c. JLabel

104.ťעͬһ¼һҪΪÿťһ¼ͨ жϲĸťϡ b. getActionCommand

105.йб˵дǣ b. бй

106.лťJToggleButtonͨ ð

18

ťĵǰ״̬ d. isSelected

107.ļԻУûļѡ󣬿ͨ ȡûѡļ

b. getSelectedFile

108.ҪһжеıӦʹõǣ b. JTextArea

109.jcb1jcb2ΪJComboBox䡰jcb2.insertItemAt(jcb1.getSelectedItem(), 0)ǣ c. jcb1ĵǰѡӵjcb2ĵ1λã 110.Ҫʹõ壬ѡõķǣ c. setFont

111.JTextArea ta\\new JTextArea(java swing, 4,30)ȷ˵ǣ

a. һ4С30еıʾʼַjava swing

112.ҪһʾıΪرաİťȷǣ

a. JButton b d. JButton(رա); e. new Button(رա); g. new JButton(رա); h. new JButton(ر);

19

1.15.2%5ļ 0.2

20