FileDocCategorySizeDatePackage
SwingDrop.javaAPI DocExample3962Tue Dec 12 18:59:34 GMT 2000None

SwingDrop

public class SwingDrop extends Object

Fields Summary
static JTextArea
textArea
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        JFrame frame = new JFrame("Drop on Me!");
        textArea = new JTextArea(20, 40);
        textArea.setLineWrap(true);
        JScrollPane scroller = new JScrollPane(textArea);
        frame.setContentPane(scroller);

        textArea.setDropTarget(new DropTarget(textArea, new TextAreaTarget(textArea)));
        frame.pack();
        frame.show();