ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <>
Subject RE: Hiding input variable..
Date Wed, 06 Nov 2002 12:42:39 GMT
Hmm, when you start BEA Weblogic without a password on the command line it manages to suppress
the echo, but I have no idea how it does it.

I guess you would have to redirect System.out/System.err temporarily. That can get quite messy.

The Swing/AWT approach is good, provided you know there is a GUI available (i.e. not much
good if you're running a Telnet session without an X-display somewhere)


-----Original Message-----
From: Stefan Bodewig []
Sent: 06 November 2002 12:39
Subject: Re: Hiding input variable..

On Wed, 6 Nov 2002, Soer J. <> wrote:

> Is it possible to hide the typing ?

No, you cannot reliably suppress characters while reading from 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.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message