🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #888

Re: Help with jPasswordField?

#888
From: SirJava
Date: Tue, 02 Nov 2004 22:55
15 lines
1340 bytes
Matthew wrote:
> Could someone please explain to me how to use the jPasswordField?  I am 
> having trouble using it.  I know somewhere I have to extract the char 
> array from it to a string, but how?
> 
> Thanks
> Matthew

JPasswordField password = new JPasswordField();

...
...


String enteredPassword = new String(password.getPassword())
Technical Details
Message-ID: <41881055@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <4187fb13$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,59fdc25488e225a8
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 02 Nov 2004 17:55:17 -0500
From:  SirJava@netscape.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Help with jPasswordField?
References: <4187fb13$1@newsgroups.borland.com>
In-Reply-To: <4187fb13$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.217.60.10
Message-ID: <41881055@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099436117 65.217.60.10 (2 Nov 2004 14:55:17 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail