⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tableselectionevent.java

📁 使用swing做的熟悉控件使用的DEMO
💻 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 + -