• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change Foreground of JPasswordField

 
Tapan Maru
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can change the char typed in the JPasswordFied from its default (****) to any other char by calling setEchoChar(char c) method.

But can we put any image like .gif or .jpeg or .png files as a foreground in the JPasswordField?

can we extend the JPasswordField class and make it possible?

Please contribute if you are having any idea.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!