When you clicked a checkbox,display the password in plaintext. the following code is key partition!
1.displaying password in plaintext when call this method
password.setTransformationMethod(HideReturnsTransformationMethod
.getInstance());
2.displaying password in ciphertext when call this method
password.setTransformationMethod(PasswordTransformationMethod
.getInstance());