void (MouseEvent e) { if (e.getID() == MouseEvent.MOUSE_CLICKED && e.getButton() == MouseEvent.BUTTON1) { int columnToPack = getColumnToPack(e.getPoint()); if (columnToPack != -1 && canResize(columnToPack)) { if (e.getClickCount() % 2 == 0) { packColumn(columnToPack); } return; // prevents click events in column resize area } } super.processMouseEvent(e); }