📄 tableselectionevent.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -