public void focusGained(java.awt.event.FocusEvent ev) { // unregister ev.getComponent().removeFocusListener(this); // lazy activation of drag source if (DragDropUtilities.dragAndDropEnabled && dragActive) { setDragSource(true); // note: dropTarget is activated in constructor } }
@Override public void focusGained(java.awt.event.FocusEvent ev) { // unregister ev.getComponent().removeFocusListener(this); // lazy activation of drag source if (DragDropUtilities.dragAndDropEnabled && dragActive) { setDragSource(true); // note: dropTarget is activated in constructor } }
public void focusGained(java.awt.event.FocusEvent ev) { // unregister ev.getComponent().removeFocusListener(this); // lazy activation of drag source if (DragDropUtilities.dragAndDropEnabled && dragActive) { setDragSource(true); // note: dropTarget is activated in constructor } }
public DataProviderExplorerPanel() { view.setDropTarget(false); view.setDragSource(false); view.setRootVisible(false); setLayout(new BorderLayout()); add(view, BorderLayout.CENTER); getExplorerManager().setRootContext(new AbstractNode(children)); initialize(); }