I want to make a paste from the system clipboard in java. How would I do this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Try this
You could also try using the Clipboard class.
You could use the robot class like this
You have to use Java graphics library, eg. take a look at http://download.oracle.com/javase/1,5.0/docs/api/java/awt/datatransfer/Clipboard.html
While the robot class would work, it's not as elegant as using the system clipboard directly, like this: