Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to show **** in input dialog.

 
Vikas Kumar Sahu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen a method showInputDialog(...) for getting input in jdialog
class, but I want that user input its data but show always * inplace
of typed character, like JPasswordField class , is there any method
in jdialog or any solution.
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a JDialog and add a JPasswordField to it. Read the Javadocs for JDialog about how to add your own components (at the top of the Javadoc)
brian
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic