1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

SwingUI.copyToClipboard(String text)

This commit is contained in:
Reinhard Pointner 2016-10-09 00:30:29 +08:00
parent e3fbd3825f
commit fb8d6bd64c

View File

@ -65,8 +65,10 @@ public final class SwingUI {
}
public static void copyToClipboard(String text) {
if (text.length() > 0) {
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(text), null);
}
}
public static void checkEventDispatchThread() {
if (!SwingUtilities.isEventDispatchThread()) {