private void updateSelectedColumn(MouseEvent e) {
            if (e.isPopupTrigger()) {
                JTableHeader th = (JTableHeader) e.getSource();
                th.putClientProperty(Key.SELECTED_COLUMN,
                        th.columnAtPoint(e.getPoint()));
            }
        }