FileDocCategorySizeDatePackage
DragTest14.javaAPI DocExample781Thu Oct 24 20:14:28 BST 2002None

DragTest14

public class DragTest14 extends JFrame

Fields Summary
JList
jl
String[]
items
Constructors Summary
public DragTest14()


    
    super("Drag Test 1.4");
    setSize(200,150);
    setDefaultCloseOperation(EXIT_ON_CLOSE);

    jl = new JList(items);
    jl.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    jl.setDragEnabled(true);

    getContentPane().add(new JScrollPane(jl), BorderLayout.CENTER);
    setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    new DragTest14();