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.
You should not use a JPasswordField bean with AWT components. Although Swing and AWT beans can be mixed, it is inadvisable.
Adding a Text Component
Text Beans
Beans for Visual Composition