I have a GUI with a JPassword field named pswrd.
When I read the entered password I save it in a
String named password and trim to get out leading and trailing
empty spaces (user pressed the space bar).
but when I print the password (using a JOptionPane)
to check that the empty spaces are gone, they never are.
Why, and what can I do about it?
Thanks!