Tag Archive | JAVA

How to use password field as text field in Java

This post will show you how to use password field as text field in Java like this:

Using password field as text field

You must have thoughts “Why do I do this?”, “I can use text field”,…. The answer is that it is convenient. You can see it according above figure. Instead of using extra text fields, labels,… to show errors, why don’t we use itself, password field, to show errors? That helps to save space and keep UI simple.

OK, you see the purpose of this? Let’s continue.

Read More…