public static String getClipboardText() throws Exception
	{
		Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
		if ((t == null) || (!t.isDataFlavorSupported(DataFlavor.stringFlavor)))
			return null;
		return (String) t.getTransferData(DataFlavor.stringFlavor);
	}