ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Hiding input variable..
Date Wed, 06 Nov 2002 12:39:21 GMT
On Wed, 6 Nov 2002, Soer J. <J.Soer@gasunie.nl> wrote:

> Is it possible to hide the typing ?

No, you cannot reliably suppress characters while reading from
System.in in Java at all.  There are workarounds like echoing
backspace characters like mad, but it doesn't really work.

Writing an AWT InputHandler and using a TextField with the echoChar
set (or Swing and JPasswordField) would work, though.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message