Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kiswar Malik   on Jan 14 In Java Category.

  
Question Answered By: Angel Harris   on Jan 14

JPasswordField passwordField = new JPasswordField(8);
passwordField.setEchoChar('*');

add the passwordField to your JFrame or JPanel, etc.....

String password  = new String(passwordField.getPassword());

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on password Or get search suggestion and latest updates.


Tagged: