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:
parent
e3fbd3825f
commit
fb8d6bd64c
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user