Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Change Foreground of JPasswordField  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!