| 软件包 | 描述 |
|---|---|
| javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
| javax.swing.event |
提供由摆动组件触发的事件。
|
| javax.swing.table |
处理
javax.swing.JTable提供类和接口。
|
| Modifier and Type | Field and Description |
|---|---|
protected TableColumnModel |
JTable.columnModel
桌子的
TableColumnModel。
|
| Modifier and Type | Method and Description |
|---|---|
protected TableColumnModel |
JTable.createDefaultColumnModel()
返回默认列模型对象,这是一个
DefaultTableColumnModel。
|
TableColumnModel |
JTable.getColumnModel()
返回包含该表的所有列信息
TableColumnModel。
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTable.setColumnModel(TableColumnModel columnModel)
设置列模型,此表
newModel和寄存器从新列模型监听器通知。
|
| Constructor and Description |
|---|
JTable(TableModel dm, TableColumnModel cm)
构建了一个
JTable是
dm作为数据模型的初始化,
cm为柱模型,和一个默认的选择模型。
|
JTable(TableModel dm, TableColumnModel cm, ListSelectionModel sm)
构建了一个
JTable是
dm作为数据模型的初始化,
cm为柱模型,并
sm作为选择模型。
|
| Constructor and Description |
|---|
TableColumnModelEvent(TableColumnModel source, int from, int to)
构建了一个
TableColumnModelEvent对象。
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTableColumnModel
一
JTable标准列处理。
|
| Modifier and Type | Field and Description |
|---|---|
protected TableColumnModel |
JTableHeader.columnModel
表格的标题
TableColumnModel。
|
| Modifier and Type | Method and Description |
|---|---|
protected TableColumnModel |
JTableHeader.createDefaultColumnModel()
这是一个
DefaultTableColumnModel返回默认的列模型对象。
|
TableColumnModel |
JTableHeader.getColumnModel()
返回包含此表的所有列标头信息
TableColumnModel。
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTableHeader.setColumnModel(TableColumnModel columnModel)
设置列模型,此表
newModel和寄存器从新列模型监听器通知。
|
| Constructor and Description |
|---|
JTableHeader(TableColumnModel cm)
构建了一个
JTableHeader是
cm为柱模型初始化。
|
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.