JarInfo ji = (JarInfo) beanJars.get(index);
        public void dragGestureRecognized(DragGestureEvent dge) {            if (Debug.debugging("beanpanel"))                Debug.output("dragGestureRecognized");            JList list = (JList) tabbedPane.getComponentAt(tabbedPane.getSelectedIndex());            String label = null;            label = (String) list.getSelectedValue();            if (label != null) {                int index = beanLabels.indexOf(label);                if (index == -1) {                    System.out.println("ERROR> BP::dragGestureRecognized: "                            + "no beanlabel found for label=" + label);                    return;                }                JarInfo ji = (JarInfo) beanJars.get(index);                String beanName = (String) beanNames.get(index);                Object bean = null;                try {                    bean = Beans.instantiate(null, beanName);                    if (Debug.debugging("beanpanel"))                        Debug.output("Instantiated bean: " + bean);                    setDragCursor(index);                } catch (Exception ex) {                    System.out.println("ERROR> BP::dragGestureRecognized: "                            + " error instantiating bean");                    ex.printStackTrace();                    return;                }                BeanInfo bi = (BeanInfo) beanInfos.get(index);                Vector beanTransferData = new Vector();                beanTransferData.add(bean);                beanTransferData.add(bi);                beanTransferData.add(new Boolean(false));                dragSource.startDrag(dge,                        customCursor,                        new DefaultTransferableObject(beanTransferData),                        tdsl);                revalidate();                repaint();            }        }