The Artima Developer Community
Sponsored Link

Java Answers Forum
Need help on masking

1 reply on 1 page. Most recent reply: Oct 4, 2003 11:27 AM by David

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
John

Posts: 13
Nickname: icej
Registered: Sep, 2003

Need help on masking Posted: Oct 4, 2003 9:34 AM
Reply to this message Reply
Advertisement
hi, i am trying to do masking on an inputDialog. My code is:
String passField= JOptionPane.showInputDialog("Password:");

And this is a code i found on the internet which works but only if i use Fields which i'm not:
JPasswordField password = new JPasswordField();
password.setEchoChar('#');

i already tried to make the InputDialog to mask but i can't. Does anybody know how to do it?
thank you


David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: Need help on masking Posted: Oct 4, 2003 11:27 AM
Reply to this message Reply
Create a custom dialog class, or don't use a pop-up message.

Flat View: This topic has 1 reply on 1 page
Topic: Need math script help Previous Topic   Next Topic Topic: event handling

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use