Java tutorial
//package com.java2s; import java.awt.datatransfer.*; public class Main { public static Transferable getContents(Clipboard clipboard) { try { return clipboard.getContents(null); } catch (Throwable t) { return null; } } }