Use a JPasswordField bean
to provide a text field for sensitive data. A JPasswordField is a text
field that always uses an echo character to mask characters that are
entered. The echo character can be specified in the property sheet for
the JPasswordField. You can use a focus accelerator to provide quick
accessability to the password field.
Adding a text component
Sun's JPasswordField bean documentation
Text beans
Beans for visual composition