public void removeEditor() { enterEditorRemoveRequest(); try { // synchronized(getTreeLock()) { super.removeEditor(); //Make the editor detach its listeners and clear values in the //inplace editor since we're done with it getEditor().setInplaceEditor(null); // } //Order of removal can cause the custom editor button to get focus even //though it's no longer onscreen, when the custom editor is removed // Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } finally { exitEditorRemoveRequest(); } }
@Override public void removeEditor() { enterEditorRemoveRequest(); try { // synchronized(getTreeLock()) { super.removeEditor(); //Make the editor detach its listeners and clear values in the //inplace editor since we're done with it getEditor().setInplaceEditor(null); // } //Order of removal can cause the custom editor button to get focus even //though it's no longer onscreen, when the custom editor is removed // Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } finally { exitEditorRemoveRequest(); } }
public void removeEditor() { enterEditorRemoveRequest(); try { // synchronized(getTreeLock()) { super.removeEditor(); //Make the editor detach its listeners and clear values in the //inplace editor since we're done with it getEditor().setInplaceEditor(null); // } //Order of removal can cause the custom editor button to get focus even //though it's no longer onscreen, when the custom editor is removed // Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } finally { exitEditorRemoveRequest(); } }