PDA

Click to See Complete Forum and Search --> : Password textbox?


rjlohan
Jun 11th, 2002, 11:40 PM
Is there a standard textfield with password character thingies in it available in Java? Which class is it?

-RJ

Dillinger4
Jun 12th, 2002, 01:16 AM
awt use to enable you to set an echo character to be used to replace characters typed by the user. I use to set this property often but now im pretty sure that you can use the JPasswordField which is a subclass of JTextField. "*" is the default echo character.
From what i remember there is no constructor that enables you to set the echo character. There is only an empty constructor, one that takes a string, one that takes an integer specifing the number of colums and one that takes bolth as arguements. So you would have to use setechoChar(char c) anyway. :rolleyes: :D

vastest
Jun 17th, 2002, 05:29 AM
use JPasswordField class and selEchoChar method.

Dillinger4
Jun 18th, 2002, 10:08 AM
Is there an echo in here?

rjlohan
Jun 18th, 2002, 05:31 PM
Is there an echo in here?

DaoK
Jun 19th, 2002, 02:48 PM
use JPasswordField class and selEchoChar method

i think it's setEchoChar and not selEchoChar

rjlohan
Jun 19th, 2002, 05:24 PM
Originally posted by DaoK


i think it's setEchoChar and not selEchoChar

I worked that out, thanks. :p