Toolkit: getSystemClipboard()
/* * Output: System clipboard = sun.awt.windows.WClipboard@1f6f0bf */ import java.awt.Toolkit; public class MainClass { public static void main(String[] args) { Toolkit tk = Toolkit.getDefaultToolkit(); System.out.println("System clipboard = " + tk.getSystemClipboard()); } }