127128129130131132133134135136137
textField.setBorder(new EmptyBorder(0,3,0,0)); new SimpleLaterInvocator() { public void execute() { textField.selectAll(); textField.grabFocus(); } }.start(); selectCell(rowIndex, columnIndex); return textField; }
6970717273747576777879
textField.setBorder(new EmptyBorder(0,0,0,0)); new SimpleLaterInvocator() { public void execute() { textField.selectAll(); textField.grabFocus(); } }.start(); selectCell(rowIndex, columnIndex); return textField; }
12311232123312341235123612371238123912401241
} catch(ModificationException me) { if(showErrors) { JOptionPane.showOptionDialog(this.parent.visualEditor, me.getMessage(), "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, null, null); jtf.grabFocus(); } return false; } }
12511252125312541255125612571258125912601261
12711272127312741275127612771278127912801281
13021303130413051306130713081309131013111312
282283284285286287288289290291292
if (showErrors) { JOptionPane.showOptionDialog(this.parent.visualEditor, me .getMessage(), "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, null, null); jtf.grabFocus(); } return false; } }
164165166167168169170171172173174
} public void focus() { JTextField valueTextField = editorComponent.getTextField(); valueTextField.selectAll(); valueTextField.grabFocus(); } private class DocumentListener extends DocumentAdapter{ protected void textChanged(DocumentEvent e) { basicFilterForm.updateNameAndPreview();
11461147114811491150115111521153115411551156
// find the label with the name and replace it with the text box JPanel panel = (JPanel)m_infoPanel.getComponent( 0 ); panel.remove( panel.getComponentCount() - 1 ); panel.add( text ); text.grabFocus(); text.selectAll(); redraw(); }