137138139140141142143144145146147
if (notesTable.editCellAt(row, 1)) { final JTextComponent textEditor = (JTextComponent) ((JScrollPane) notesTable.getEditorComponent()).getViewport().getView(); textEditor.requestFocusInWindow(); textEditor.selectAll(); } } }); }
462463464465466467468469470471472
{ if (notesTable.editCellAt(indexOfNote(currentNote), 1)) { final JTextComponent textEditor = (JTextComponent) ((JScrollPane) notesTable.getEditorComponent()).getViewport().getView(); textEditor.requestFocusInWindow(); } } }); configureUI(); }
235236237238239240241242243244245
private void startEditing() { JTextComponent textField = (JTextComponent) combo.getEditor().getEditorComponent(); combo.setEditable(true); textField.requestFocusInWindow(); String text = translate(initialEditValue); if (text == null) { text = ""; // will revert to last valid value if invalid }
780781782783784785786787788789790
// The "-1" just snugs us up a bit under the text field. findPopup.show(c, 0, c.getHeight() - 1); // Set focus back to the text field. // TODO Fix caret positioning, selection, etc. c.requestFocusInWindow(); } } /** * DOCUMENT ME!
468469470471472473474475476477478
{ graphComponent.redraw(state); } currentEditor.revalidate(); currentEditor.requestFocusInWindow(); currentEditor.selectAll(); configureActionMaps(); } }
176177178179180181182183184185186
JTextComponent jtc = null; if (e != null && e.getSource() != null) { jtc = (JTextComponent)e.getSource(); } if (jtc != null) { jtc.requestFocusInWindow(); } } } /**
173174175176177178179180181182183
174175176177178179180181182183184