Example usage for javax.swing.event TableColumnModelEvent getSource

List of usage examples for javax.swing.event TableColumnModelEvent getSource

Introduction

In this page you can find the example usage for javax.swing.event TableColumnModelEvent getSource.

Prototype

public Object getSource() 

Source Link

Document

The object on which the Event initially occurred.

Usage

From source file:edu.ku.brc.specify.plugins.sgr.SGRResultsDisplay.java

@Override
public void columnMoved(TableColumnModelEvent e) {
    int from = e.getFromIndex();
    int to = e.getToIndex();
    if (from == to)
        return;/* www.  j  ava  2s . c o m*/
    System.out.println(e.getSource() + " " + from + " " + to);
    SGRColumnOrdering.getInstance().moveColumn(from, to);
}