|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Help with Swing
I have created a simple interface to get the value of a JPasswordField in a dialogbox by clicking a JButton. But the getPassword() method is giving some garbage values.
How can I get the correct value in this field ? Mail me at URL. Thanx ![]() Last edited by sherbir : March 1st, 2004 at 01:49 AM. Reason: Mistake |
|
#2
|
|||
|
|||
|
Some piece of code would have been nice, let's try it without:
getPassword returns a char-array. In many cases you would need a String object. So convert it: String str = new String( pwField.getPassword() ); Now System.out.println(str); should make it visible. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Help with Swing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|