🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Matthew Tue, 02 Nov 2004 21:24
Help with jPasswordField?
#887
Author: Matthew
Date: Tue, 02 Nov 2004 21:24
6 lines
1062 bytes
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
Re: Help with jPasswordField?
#888
Author: 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())
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads