I already know you can't compare strings using ==, so I've tried using the
following code:-

if (lblcurPass.getText().equals(curPass))

However, even when lblcurPass and curPass are the same it will always return
false. I've also tried compareTo, and that returns false.
Using System.out.print I can display the two passwords, and they are indeed
the same on screen.
Comparing two strings in a seperate small applet also works fine

What's going wrong?

Richard Kirkcaldy