Java Example Program / Sample Source Code
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.FlavorListener;
public class GetFlavorListenersExample{
public static void main(String[] argv) throws Exception {
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
FlavorListener[] availableFlavorListener = clipboard.getFlavorListeners();
for (FlavorListener flavorListener : availableFlavorListener) {
System.out.println("flavorListener "+flavorListener);
}
}
} |
|
|