• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPasswordField  RSS feed

 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey fellas,
I got a JPasswordField that works perfectly. The user types the password into the frame and saves it, so other information. When updating this information, the password (like other data) is retrieved from database and set into JPasswordField. For security reasons, I would like to 'masking' this field, so the user can't see the lenght of the password previously typed. For example: the password for user "tiago" is "tf", and when updating, the JPassword field displays "**", but it could be more secure if it displays "******" (always the same number of stars, not just for this user).
Any idea?
Thanks a lot!
 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what about making it like linux? No chars are visible.
 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, good idea, I could consider that... anyway, I've already solved this problem understanding the flow of my application (not using any java magic).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!