Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
On stackoverflow they say that this is not exactly what you need. FlavorEvent
not sent if data is copied again from the same application.
Suggested solution here .
for example like this:
Toolkit.getDefaultToolkit()
.getSystemClipboard()
.addFlavorListener(new FlavorListener() {
@Override
public void flavorsChanged(FlavorEvent e) {
//данные в буфере изменились, можно брать из
//Toolkit.getDefaultToolkit().getSystemClipboard().getData
}
});
docs.oracle.com/javase/7/docs/api/java/awt/datatra... (java.awt.datatransfer.FlavorListener)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question