How can I use JTextField input as the identifier of a new class instance?
<p>I have a UserInput class which contains a JTextField that accepts a users name.  I also have a Paycheck class.  I would like to create a new instance of Paycheck using the text of the JTextField as the identifier.  E.g.  If the user types Troy,  I would like to be able to create a new instance: </p>

<pre><code> Paycheck Troy = new Paycheck();  
</code></pre>

<p>I am currently recieving an incompatable type error.  </p>
