title: How to Retrieve value from JTextField in Java Swing?
body: <p>How do we retrieve value from a textfield and <code>actionPerformed()</code>? I need the value to be converted into <code>String</code> for further processing.  I have created a textfield on clicking a button I need to store the value entered into a <code>String</code> can you please provide a code snippet?</p>