Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed Sep 26, 2023
1 parent f430cda commit fb7898e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ class InputStreamMock(input: String) : InputStream() {
// }
//
fun clearClipboard() {
val clipboard = Toolkit.getDefaultToolkit().systemClipboard
clipboard.setContents(StringSelection(""), null)
try {
val clipboard = Toolkit.getDefaultToolkit().systemClipboard
clipboard.setContents(StringSelection(""), null)
} catch (e: Exception) {
println("Error: ${e.message}")
System.err.println(e.message)
}
}

0 comments on commit fb7898e

Please sign in to comment.