public override void focusGained(FocusEvent focusevent) { }
public virtual void focusLost(FocusEvent e) { if (!(((EventObject) e).getSource() is JTextComponent)) return; ((JTextComponent) ((EventObject) e).getSource()).select(0, 0); }
/// <summary> /// Processes focus events occurring on this component by /// dispatching them to any registered /// <code>FocusListener</code> objects. /// </summary> protected void processFocusEvent(FocusEvent @evt) { }
public virtual void focusGained(FocusEvent e) { if (!(((EventObject) e).getSource() is JTextComponent)) return; ((JTextComponent) ((EventObject) e).getSource()).selectAll(); }