• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

JPasswordField -> casting problem

hi,

I am trying to grab the content of the JpasswordField and display the content of it on the JtextField, and somewhere else

also, i need to cast the content of the JpasswordField out as a String, but i keep on getting an error msg if i cast it out directly.

can anyoen suggest me how to do it?
0
tom_mk
Asked:
tom_mk
1 Solution
 
suprapto45Commented:
Hi,

Can you put your current codes here so that we can analyze where there errors are.

Regards
Dave
0
 
objectsCommented:
String password = new String(field.getPassword());
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now