From eec856005a264bdfaa43841227591a472a33982b Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 7 Sep 2010 15:14:28 +0000 Subject: [PATCH] right click opens view URL popup for both parameters and option boxes JAL-601 --- src/jalview/gui/WsJobParameters.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/WsJobParameters.java b/src/jalview/gui/WsJobParameters.java index cf76f75..d0e39df 100644 --- a/src/jalview/gui/WsJobParameters.java +++ b/src/jalview/gui/WsJobParameters.java @@ -106,6 +106,7 @@ import jalview.ws.params.WsParamSetI; public class WsJobParameters extends JPanel implements ItemListener, ActionListener, DocumentListener { + URL linkImageURL = getClass().getResource("/images/link.gif"); private static final String SVC_DEF = "Defaults"; // this is the null // parameter set as shown to // user @@ -867,7 +868,7 @@ public class WsJobParameters extends JPanel implements ItemListener, finfo = parm.getFurtherDetails(); if (finfo != null) { - showDesc.setToolTipText("

Click to show brief description, and right click to open link for further information.

"); + showDesc.setToolTipText("

Click to show brief description
Right click for further information.

"); showDesc.addMouseListener(this); } else @@ -1159,7 +1160,7 @@ public class WsJobParameters extends JPanel implements ItemListener, { if (javax.swing.SwingUtilities.isRightMouseButton(e)) { - Desktop.showUrl(finfo.toString()); + showUrlPopUp(this, finfo.toString(), e.getX(), e.getY()); } } @@ -1200,8 +1201,6 @@ public class WsJobParameters extends JPanel implements ItemListener, JLabel optlabel = new JLabel(); - URL linkImageURL = getClass().getResource("/images/link.gif"); - final URL finfo; boolean hasLink = false; -- 1.7.10.2