I am developing the logic to build a good password strength checker for my login form,but the problem is how to express strength of password entered ? I am using java and I am using this approach:
-
using JProgressBar as strength meter,it changes color when focus from JPasswordField is lost or when a key is released in JPasswordField (this gives quicker response).
-
Can I use Swing Worker on this to make it better ? I have never used it so can anybody help me with that if it is best way.
Please forgive me for long sentences.
See Image below:

no SwingWorker doesn’t make me sence in this case, that’s just and about DocumentListener
NOTICE: this example not about How to check password strenght, just how to listening for changes from JPasswordField and redirect output to the JProgressBar