-
Re: jPasswordField ......Kent....
I think that even though jPassword extends JTextField it seems that the methods
setText have been deprecated or I don't know how to access them.
"rob" <robert.s.cascella@lmco.com> wrote:
>
>
>Is there a good way to 'setText' in a jPasswordField? There is only a
>getPassword method and the PasswordField seems to only take input from the
>keyboard. I need it to accept input from button clicks. I am making a keyboard
>on the screen to be clicked for a handheld PDA that has no keys.
>
>can't use a plain jTextField because it has no EchoChar.
>
>I think I cannot use Swing on a handheld anyway so maybe this is academic.
>It does seem to be an oversight because Suns tutorial talks about both get
>and set methods but only shows getPassword.
>
>Thanks
-
Re: jPasswordField ......Kent....
Rob,
Bizarre. I've used the setText() method several times on a JPasswordField
in a project I'm currently working on and it works fine. What JDK / JRE version
are you using? What does your API doco say about the setText() method? What
compilation / runtime error are you receiving?
Regards,
Kent
"Rob" <Robert.s.Cascella@lmco.com> wrote:
>
>
>I think that even though jPassword extends JTextField it seems that the
methods
>setText have been deprecated or I don't know how to access them.
>
>
>
>"rob" <robert.s.cascella@lmco.com> wrote:
>>
>>
>>Is there a good way to 'setText' in a jPasswordField? There is only a
>>getPassword method and the PasswordField seems to only take input from
the
>>keyboard. I need it to accept input from button clicks. I am making a keyboard
>>on the screen to be clicked for a handheld PDA that has no keys.
>>
>>can't use a plain jTextField because it has no EchoChar.
>>
>>I think I cannot use Swing on a handheld anyway so maybe this is academic.
>>It does seem to be an oversight because Suns tutorial talks about both
get
>>and set methods but only shows getPassword.
>>
>>Thanks
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks