From: gmungoc Date: Thu, 26 Sep 2019 13:59:23 +0000 (+0100) Subject: JAL-3441 action double-click in Feature Type column only X-Git-Tag: Release_2_11_1_0~22^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c531d6bbe7bc9de13a4dd97fad568544d3b8f647;p=jalview.git JAL-3441 action double-click in Feature Type column only --- diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 441dca7..11d5e39 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -282,7 +282,8 @@ public class FeatureSettings extends JPanel @Override public void mousePressed(MouseEvent evt) { - selectedRow = table.rowAtPoint(evt.getPoint()); + Point pt = evt.getPoint(); + selectedRow = table.rowAtPoint(pt); String type = (String) table.getValueAt(selectedRow, TYPE_COLUMN); if (evt.isPopupTrigger()) { @@ -290,7 +291,8 @@ public class FeatureSettings extends JPanel popupSort(selectedRow, type, colour, fr.getMinMax(), evt.getX(), evt.getY()); } - else if (evt.getClickCount() == 2) + else if (evt.getClickCount() == 2 + && table.columnAtPoint(pt) == TYPE_COLUMN) { boolean invertSelection = evt.isAltDown(); boolean toggleSelection = Platform.isControlDown(evt);