问题
单项选择题
下列不属于Swing的构件是______。
A.JButton
B.JLabel
C.JFrame
D.JPane
答案
参考答案:D
解析: Swing构件中JButton是按钮构件,JLabel为标签构件,JFrame为顶层窗体容器构件。中间容器面板应为JPanel,而不是JPane。
下列不属于Swing的构件是______。
A.JButton
B.JLabel
C.JFrame
D.JPane
参考答案:D
解析: Swing构件中JButton是按钮构件,JLabel为标签构件,JFrame为顶层窗体容器构件。中间容器面板应为JPanel,而不是JPane。