Transferable tran = null; if (o instanceof DefaultMutableTreeNode) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) o; return new MyTransferable(node); } throw new IllegalArgumentException("Not a DefaultMutableTreeNode");
Transferable tran = null; if (o instanceof DefaultMutableTreeNode) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) o; return new MyTransferable(node);
    public Transferable makeDraggableObject(Object o) {        Transferable tran = null;        if (o instanceof DefaultMutableTreeNode) {            DefaultMutableTreeNode node = (DefaultMutableTreeNode) o;            return new MyTransferable(node);        }        throw new IllegalArgumentException("Not a DefaultMutableTreeNode");    }