public void dragGestureRecognized (DragGestureEvent dge) { super.dragGestureRecognized (dge); // notify tree cell editor that DnD operationm is active if (exDnD.isDnDActive ()) { TreeCellEditor tce = ((JTree)tree).getCellEditor (); if (tce instanceof TreeViewCellEditor) ((TreeViewCellEditor)tce).setDnDActive (true); } }
@Override public void dragGestureRecognized(DragGestureEvent dge) { super.dragGestureRecognized(dge); // notify tree cell editor that DnD operationm is active if (exDnD.isDnDActive()) { TreeCellEditor tce = tree.getCellEditor(); if (tce instanceof TreeViewCellEditor) { ((TreeViewCellEditor) tce).setDnDActive(true); } } }
public void dragGestureRecognized (DragGestureEvent dge) { super.dragGestureRecognized (dge); // notify tree cell editor that DnD operationm is active if (exDnD.isDnDActive ()) { TreeCellEditor tce = ((JTree)tree).getCellEditor (); if (tce instanceof TreeViewCellEditor) ((TreeViewCellEditor)tce).setDnDActive (true); } }
((TreeViewCellEditor)tce).setDnDActive (false);
((TreeViewCellEditor)tce).setDnDActive (false);
((TreeViewCellEditor) tce).setDnDActive(false);
((TreeViewCellEditor) tce).setDnDActive(false);
((TreeViewCellEditor)tce).setDnDActive (false);
((TreeViewCellEditor)tce).setDnDActive (false);