public String getClipboardData() {
        Transferable clip = null;
        try {
            Clipboard cp = Toolkit.getDefaultToolkit().getSystemClipboard();
            clip = cp.getContents(this);            
        }
        catch (Exception e) {
        }
        if (clip == null) {
            return "";
        }
        String text = null;
        try {
            text = (String) clip.getTransferData(DataFlavor.stringFlavor);
        } catch (Exception e) {
        }
        if (text == null) {
            return "";
        }
        return text;
    }