public void propertyChange(PropertyChangeEvent ev) { if (!isEditing()) { return; } Component c = focusManager.getPermanentFocusOwner(); JXTree tree = JXTree.this; while (c != null) { if (c instanceof JPopupMenu) { c = ((JPopupMenu) c).getInvoker(); } else { if (c == tree) { // focus remains inside the table return; } else if ((c instanceof Window) || (c instanceof Applet && c.getParent() == null)) { if (c == SwingUtilities.getRoot(tree)) { if (tree.getInvokesStopCellEditing()) { tree.stopEditing(); } if (tree.isEditing()) { tree.cancelEditing(); } } break; } c = c.getParent(); } } } }
(c instanceof Applet && c.getParent() == null)) { if (c == SwingUtilities.getRoot(tree)) { if (tree.getInvokesStopCellEditing()) { tree.stopEditing();
(c instanceof Applet && c.getParent() == null)) { if (c == SwingUtilities.getRoot(tree)) { if (tree.getInvokesStopCellEditing()) { tree.stopEditing();
(c instanceof Applet && c.getParent() == null)) { if (c == SwingUtilities.getRoot(tree)) { if (tree.getInvokesStopCellEditing()) { tree.stopEditing();
(c instanceof Applet && c.getParent() == null)) { if (c == SwingUtilities.getRoot(tree)) { if (tree.getInvokesStopCellEditing()) { tree.stopEditing();
(c instanceof Applet && c.getParent() == null)) { if (c == SwingUtilities.getRoot(tree)) { if (tree.getInvokesStopCellEditing()) { tree.stopEditing();