title: How to fix'getText() in JPasswordField has been deprecated'
body: <p>my java dekstop send error like this what can i do?</p>
  
  <blockquote>
    <p>getText() in JPasswordField has been deprecated</p>
  </blockquote>
  
  <p>i have tried to replace <code>getText()</code> and change to <code>getPassword()</code>:</p>
  
  <pre><code>pst.setString(2,txtPass.getPassword());
  </code></pre>