title: j2me: How to use setCommandListener on a TextField?
body: <p>I wanted to make it so that when I select a specific <code>TextField</code> in a <code>Form</code>, I get a specific list of <code>Command</code>s,</p>
  
  <p>for example<br>
  TextField: OK, Cancel<br>
  TextField2: OK, Back, Help</p>
  
  <p>And I succeeded by using <code>addCommand()</code> on each of <code>TextField</code>s <strong>but I can't tell it what to happen when when I activate one of these commands</strong> since there is no <code>setCommandListener</code> method for them.</p>
  
  <p>It throws a <code>NullPointerException</code> when I click it.</p>
  
  <p>I also tried to get the commands from their <code>Form</code> but it is receiving only the commands that it contains, not the commands that <code>TextField</code>s have.</p>
  
  <p>How to get around this?</p>