From: jprocter Date: Tue, 7 Sep 2010 15:14:28 +0000 (+0000) Subject: right click opens view URL popup for both parameters and option boxes JAL-601 X-Git-Tag: Release_2_6~62 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=eec856005a264bdfaa43841227591a472a33982b;p=jalview.git right click opens view URL popup for both parameters and option boxes JAL-601 --- 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;