FileDocCategorySizeDatePackage
Dropper.javaAPI DocExample3685Fri Apr 09 20:12:26 BST 2004datatransfer

Dropper

public class Dropper extends JFrame
Dropper - show File Drop Target from Drag-n-Drop
version
$Id: Dropper.java,v 1.1 2004/04/10 00:12:25 ian Exp $

Fields Summary
Constructors Summary
public Dropper()
Construct trivial GUI and connect a TransferHandler to it.

		super("Drop Target");

		JComponent cp = (JComponent) getContentPane();
		cp.setTransferHandler(new MyFileTransferHandler()); // see below

		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(150, 150);
	
Methods Summary
public static voidmain(java.lang.String[] args)
Instantiate and show the GUI

		new Dropper().setVisible(true);