软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
Modifier and Type | Interface and Description |
---|---|
interface |
ComboBoxModel<E>
一个组合框的数据模型。
|
interface |
MutableComboBoxModel<E>
一个可变的版本
ComboBoxModel 。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractListModel<E>
对于数据模型,提供了一个
List 其内容的抽象定义。
|
class |
DefaultComboBoxModel<E>
组合框的默认模型。
|
class |
DefaultListModel<E>
这类松散的实现
java.util.Vector API,因为它实现了1.1,
java.util.Vector X版本,没有集合类的支持,并通知
ListDataListener s发生变化时。
|
Modifier and Type | Method and Description |
---|---|
ListModel<E> |
JList.getModel()
返回的数据模型,是由
JList 组件显示项目列表。
|
Modifier and Type | Method and Description |
---|---|
void |
JList.setModel(ListModel<E> model)
设置表示内容或“值”列表的模式,通知属性改变监听器,然后清除列表中的选择。
|
Constructor and Description |
---|
JList(ListModel<E> dataModel)
构建了一个
JList 显示指定的,
non-null 元素模型。
|
Modifier and Type | Class and Description |
---|---|
class |
BasicDirectoryModel
文件列表的基本实现。
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
画一列细胞:计算有关的状态,让“橡皮图章”单元格渲染器组件,然后用cellrendererpane漆。
|
Modifier and Type | Class and Description |
---|---|
protected class |
MetalFileChooserUI.DirectoryComboBoxModel
用于类型人脸选择组合框的数据模型。
|
protected class |
MetalFileChooserUI.FilterComboBoxModel
用于类型人脸选择组合框的数据模型。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.