Changed the copyToClipboard method to take a Toolkit parameter.