0

This question, Masking password input from the console : Java, addresses using the Console class to hide input as asterisks. How can this be done in a Swing GUI, where input is entered into a JTextArea, rather than the console?

Community
  • 1
  • 1
Clint
  • 900
  • 11
  • 25

1 Answers1

2

You can Use this Swing component instead.

JPasswordField

http://docs.oracle.com/javase/7/docs/api/javax/swing/JPasswordField.html

3kings
  • 838
  • 2
  • 13
  • 28