Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text control for password => char[] output?
Text control for password => char[] output? [message #523252] Thu, 25 March 2010 16:32 Go to next message
Eclipse UserFriend
Originally posted by: sascha.zainzinger.apex-gaming.com

hello,

after digging into the topic I still wasn't able to find a way to use an
SWT Text control for password input.
yes, one can use SWT.PASSWORD / .setEchoChar() but that is only the
cosmetic part.

but since one should not use Strings to handle passwords in Java and the
SWT Text control does not offer a way to access its content without
having it converted to a String first, I was wondering if there is
another control to use in this case - or if there is a way of using SWT
Text to prevent the String conversion?
(or if another getText() method can be expected in future SWT versions?)

thanks in advance!
sascha
Re: Text control for password => char[] output? [message #523397 is a reply to message #523252] Fri, 26 March 2010 10:13 Go to previous messageGo to next message
Praveen  is currently offline Praveen Friend
Messages: 86
Registered: July 2009
Member
Sascha Zainzinger wrote:
> ... I was wondering if there is
> another control to use in this case - or if there is a way of using SWT
> Text to prevent the String conversion?
Currently, I don't think there is any other control to use PASSWORD
field for handling passwords through text fields.

> (or if another getText() method can be expected in future SWT versions?)
This might be considered if there is a bug request for this feature to
return character array for passwords - method signature might look like
char[] getPasswordText().
If there is no such bug request, then can you raise a enhancement
request at https://bugs.eclipse.org/bugs/ for consideration in future ?
Re: Text control for password => char[] output? [message #523443 is a reply to message #523397] Fri, 26 March 2010 13:53 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=297412 .

Grant


"Praveen" <pinnamur@in.ibm.com> wrote in message
news:hoi1cm$vq2$1@build.eclipse.org...
> Sascha Zainzinger wrote:
> > ... I was wondering if there is
> > another control to use in this case - or if there is a way of using SWT
> > Text to prevent the String conversion?
> Currently, I don't think there is any other control to use PASSWORD
> field for handling passwords through text fields.
>
> > (or if another getText() method can be expected in future SWT versions?)
> This might be considered if there is a bug request for this feature to
> return character array for passwords - method signature might look like
> char[] getPasswordText().
> If there is no such bug request, then can you raise a enhancement
> request at https://bugs.eclipse.org/bugs/ for consideration in future ?
Previous Topic:sticky notes in RCP 3.4
Next Topic:Little problem with FormattedText
Goto Forum:
  


Current Time: Fri Mar 29 14:08:42 GMT 2024

Powered by FUDForum. Page generated in 0.02338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top