🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19300

Re: Getting a Password TextField NOT to display characters.

#19300
From: James D. Frentress
Date: Wed, 18 Feb 1998 00:00
25 lines
1251 bytes
Alex Humphreys wrote:

> I have a simple login dialog that will take a user id and login as
> text
> field entries.  Now.  Is there a way i can get the Password box to
> only
> display * characters for the characters?  The only way I can think of
> to

Here's the answer, straight from the online docs:

 setEchoChar

 public void setEchoChar(char c)

   Sets the echo character for this TextField. This is useful
   for fields where the user input shouldn't be echoed to the
   screen, as in the case of a TextField that represents a
   password.

   Parameters:
      c - the echo character for this TextField
   See Also:
      echoCharIsSet, getEchoChar
Technical Details
Message-ID: <34EB9523.D594FBCF@ForAWhile.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34EB88D6.49970B4@sema4.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7f31e12814f8fd1c
X-Google-Attributes: gidf74b3,public
From: "James D. Frentress" <Broken@ForAWhile.com>
Subject: Re: Getting a Password TextField NOT to display characters.
Date: 1998/02/18
Message-ID: <34EB9523.D594FBCF@ForAWhile.com>
X-Deja-AN: 326432555
Content-Transfer-Encoding: 7bit
References: <34EB88D6.49970B4@sema4.com>
X-Priority: 3 (Normal)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Microsoft
Newsgroups: borland.public.jbuilder.java.language