The equal works well as previously I using == and it doesn't seems to work, don't know why.
The "==" compares Object references (something like a pointers) and they'll be equal only if it was the exact same object.

Regarding the FocusListener, how can I use it? I think I use it the wrong way resulting in program startup, textfield straight away change instead of mouse over and click it.
It might be that the form has nothing but the JTextField or maybe it's the number 0 in the tab index map so it gains focus on startup