单项选择题
在下列布局管理器中,哪个布局管理器使用东西南北中方式放置控件()
A.BorderLayout
B.CardLayout
C.FlowLayout
D.GridBagLayout
点击查看答案&解析
相关考题
-
单项选择题
哪些swing组件使用ListSelectionModel()
A.JList and JCombox
B.JPopupMenu and JTable
C.JTable and JCombox
D.JList and JTable -
单项选择题
下面哪种类型的model承载了JTextField的实际内容()
A.TableModel
B.ListModel
C.Document
D.TreeModel -
单项选择题
关于javax.swing.event.ListSelectionListener事件参数javax.swing.event.ListSelectionEvent的getValueIsAdjusting()方法中错误说法是()
A.使用鼠标选择内容时,如果只选择一条记录,则选择改变事件只被触发一次,且getValueIsAdjusting()等于false
B.鼠标在按下之后触发的任何与选择有关的动作,都会触发改变事件,且e.getValueIsAdjusting()都等于true
C.鼠标在选择多条记录后,松开左键会触发一次改变事件,且e.getValueIsAdjusting()等于false
D.使用键盘改变选择内容时,选择改变事件只被触发一次,且javax.swing.event.ListSelectionListener等于false
