Results 1 to 7 of 7

Thread: Password textbox?

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    Password textbox?

    Is there a standard textfield with password character thingies in it available in Java? Which class is it?

    -RJ
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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.

  3. #3
    vastest
    Guest
    use JPasswordField class and selEchoChar method.

  4. #4

  5. #5

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Is there an echo in here?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  6. #6
    DaoK
    Guest
    use JPasswordField class and selEchoChar method
    i think it's setEchoChar and not selEchoChar

  7. #7

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Originally posted by DaoK


    i think it's setEchoChar and not selEchoChar
    I worked that out, thanks.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width