title: Force JTextField to select all of its contents when it appears
body: <p>I have a <code>JLabel</code> that when you click on it its replaced with a <code>JTextField</code>. I need that <code>JTextField</code> to automatically select all of its text when it appears.</p>