From: Jim Procter Date: Tue, 18 Feb 2014 09:25:31 +0000 (+0000) Subject: JAL-1446 use popup event trigger instead of right-click event X-Git-Tag: Jalview_2_9~207^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=416319530fff2c87f9bcbc0f0d568fe4b8566c70;p=jalview.git JAL-1446 use popup event trigger instead of right-click event --- diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 10479cc..9adb254 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -99,7 +99,7 @@ public class FeatureSettings extends JPanel public void mousePressed(MouseEvent evt) { selectedRow = table.rowAtPoint(evt.getPoint()); - if (javax.swing.SwingUtilities.isRightMouseButton(evt)) + if (evt.isPopupTrigger()) { popupSort(selectedRow, (String) table.getValueAt(selectedRow, 0), table.getValueAt(selectedRow, 1), fr.minmax, evt.getX(),