public void focusGained(FocusEvent e) { if (blocker != null) blocker.stopBlocking(); ((JComponent)e.getSource()).removeFocusListener(this); }
public void focusGained(FocusEvent e) { if (e.getSource() instanceof JTextField) { ((JTextField)e.getSource()).selectAll(); if (blocker != null) blocker.stopBlocking(); } ((JComponent)e.getSource()).removeFocusListener(this); }