I presume you know how to get text from text boxes with their methods? And how to compare the text, which is a String? You will probably find a dialogue the simplest form of popup; try option panes. Note that API link contains a Java Tutorials link, which will probably help, too.
Joined: Oct 13, 2005
By the way: there is a special text component designed for passwords. I can’t remember its name, but it is something like JPasswordField.