setColumnWidth(7, 50, -1);
}
@Override
protected MouseListener getMouseListener() {
final JXTable view = this.view;
return new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
if (SwingUtilities.isRightMouseButton(e)) {
// Select table item
int row = view.rowAtPoint( e.getPoint() );
if (row < 0 || !view.getSelectionModel().isSelectedIndex(row)) {
view.getSelectionModel().clearSelection();
if (row >= 0) {
view.getSelectionModel().setSelectionInterval(row, row);
}
}
View.getSingleton().getPopupMenu().show(e.getComponent(), e.getX(), e.getY());
}