Posted by
Rick Simmons on
Jun 08, 2010; 8:36pm
URL: http://imagej.273.s1.nabble.com/Hypertext-links-in-IJ-showMessage-tp3687773p3687779.html
Wayne,
Is there a file.copy() macro command (or something similar)? I need to
copy a *.txt output file to a *.csv file so that it can be easily opened
by Excel or MiniTab. I need to retain both the txt and csv files.
Thanks in advance (again).
Rick
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
Rasband, Wayne (NIH/NIMH) [E]
Sent: Tuesday, June 08, 2010 1:36 PM
To:
[hidden email]
Subject: Re: Hypertext links in IJ.showMessage
On Jun 8, 2010, at 9:44 AM, Michael Doube wrote:
> All,
>
> Is there a way to make a URL in an ImageJ error or message dialog
> 'hyper', i.e., so the user can just click on the text to go to a
website?
>
> A quick google of the web and search of the IJ source was not
fruitful.
You can add a "Help" button that opens a URL to GenericDialogs. With
v1.44c and later, you can specify the font used to display the error
message and the label used by the "Help" button. Here is an example:
void error(String title, String message) {
GenericDialog gd = new GenericDialog(title);
Font font = new Font("SansSerif", Font.PLAIN, 16);
gd.addMessage(message, font); // requires 1.44c
gd.addHelp("
http://rsb.info.nih.gov/ij/");
gd.setHelpLabel("More Information"); // requires 1.44c
gd.hideCancelButton();
gd.showDialog();
}
-wayne
---------------------------------------------------------------------------------------------------------
This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited.
All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment.
---------------------------------------------------------------------------------------------------------