I'm using setEchoChar so that a password is displayed as asterisks. I have a dialog used to change the password where I call setText on the TextField with the setEchoChar set. The real password is always displayed however instead of the asterisks. It looks as if the only time asterisks are displayed is when you are actually typing in the TextField but it doesn't work for setText. How can I get this to work without doing setText("******").