Article View: borland.public.jbuilder.java.swing
Article #939Re: Problem with JPasswordField in JBuilderX
From: Dominique Descamps
Date: Mon, 17 May 2004 09:39
Date: Mon, 17 May 2004 09:39
59 lines
2960 bytes
2960 bytes
Hello Kevin, Thank you for the help, this was indeed the solution. Best regards Dominique Kevin Dean wrote: > The problem is the way you're using the password field. The getPassword() > method returns an array of char; when you call toString() on the result, it > gives you the type and address, not a string of the array. > > To convert it to a string, do the following: > > String password = new String(passwordField.getPassword()); > > -- > Check out our latest white papers at > http://www.datadevelopment.com/papers/index.html > > BladeNET Scores With Borland Enterprise Tools > Team Development with JBuilder and Borland Enterprise Server > > Dolphin Data Development Ltd. > http://www.datadevelopment.com/ > > "Dominique Descamps" <dominique.descamps@alcatel.be> wrote in message > news:40A34244.D48DC3D@alcatel.be... > > Good morning, > > I have an application, using a JPasswordField, that I created using > > Borland JBuilder8. > > Now I am continuing developping this applciation using JBuilderX. In > > order to make this work, I had to add the registry settings concerning > > the JRE 1.4 environment. > > Now my application is not able to retrieve the password from the > > mentioned field anymore using the method "getPassword( )": the result of > > this method is different each time it is called. > > > > I see following possible problems: > > 1. the component, used in JBuilderX, is not stable. > > 2. my registry settings are wrong. > > 3. there is another problem. > > > > Could you help me out? > > 1. Could you tell me where I can find a file, containing a stable > > JPassWordField component? > > 2. My settings under "\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime > > Environment" are: > > JavaHome "C:\Program Files\JBuilderX\jdk1.4\jre" > > MicroVersion "0" > > RunTimeLib "C:\Program Files\...\client\jvm.dll" > > Can this be correct? > > 3. HEEEEELP!!! > > > > Best regards > > Dominique Descamps > > Software Engineer > > Alcatel Bell, Belgium > >
Technical Details
Message-ID:
<40A8885C.20AF68C0@alcatel.be>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40A34244.D48DC3D@alcatel.be> <40a4bb6d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1de8d209580de4bb X-Google-Attributes: gid111d45,public Message-ID: <40A8885C.20AF68C0@alcatel.be> Date: Mon, 17 May 2004 11:39:40 +0200 From: Dominique Descamps <dominique.descamps@alcatel.be> X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Problem with JPasswordField in JBuilderX References: <40A34244.D48DC3D@alcatel.be> <40a4bb6d$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.207.101.251 X-Trace: newsgroups.borland.com 1084786678 195.207.101.251 (17 May 2004 02:37:58 -0700) Lines: 60 Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail