tableselectionevent.java
来自「使用swing做的熟悉控件使用的DEMO」· Java 代码 · 共 29 行
JAVA
29 行
import javax.swing.event.ListSelectionEvent;
/**
* An event that characterizes a change in the current selection.
* @author Jan-Friedrich Mutter (jmutter@bigfoot.de)
*/
public class TableSelectionEvent extends ListSelectionEvent {
/**
* The index of the column whose selection has changed.
*/
protected int columnIndex;
public TableSelectionEvent(Object source, int firstRowIndex, int lastRowIndex,
int columnIndex, boolean isAdjusting) {
super(source, firstRowIndex, lastRowIndex, isAdjusting);
this.columnIndex = columnIndex;
}
/**
* Returns the index of the column whose selection has changed.
* @return The last column whose selection value has changed, where zero is the first column.
*/
public int getColumnIndex() {
return columnIndex;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?