private void copyToClipboard(String selectString){
        if (selectString != null){
            StringSelection stringSelection = new StringSelection (selectString);
            Clipboard clipboard = Toolkit.getDefaultToolkit ().getSystemClipboard ();
            clipboard.setContents (stringSelection, null);
        }
    }