08-17-2011 08:46 AM
Here i want how to implement Passwordfield with hint like android
that means when we click on key it will display like charecter after some fraction of seconds it will change into cross mark(*)
please help me frnds
thanks
08-17-2011 08:48 AM
08-17-2011 09:04 AM
08-17-2011 09:43 AM
thank u sir,
please provide me some code like where we have o use timertask to replace function?
08-17-2011 09:47 AM
08-17-2011 09:54 AM
private class changeChar extends TimerTask {
public void run() {
Thread t= Thread.currentThread();
try {
t.sleep(1000); // 1000 to change char to * after 1 sec
} catch (InterruptedException e) {
e.printStackTrace();
}
// your textfield string last char set to *, use two diff strings one for display & one for your inapp use
}
}call this class in schedular so that after 1 sec char will change to *
08-17-2011 09:54 AM
private class changeChar extends TimerTask {
public void run() {
Thread t= Thread.currentThread();
try {
t.sleep(1000); // 1000 to change char to * after 1 sec
} catch (InterruptedException e) {
e.printStackTrace();
}
// your textfield string last char set to *, use two diff strings one for display & one for your inapp use
}
}create this class object in schedular so that after 1 sec char will change to *
08-17-2011 10:01 AM
08-17-2011 10:03 AM
inside editfield i put this
TimerTask tt=new TimerTask() {
public void run() {
editField.setText("*");
}
};t.scheduleAtFixedRate(tt, 1000, 1000);
but how to store key value dont know
08-17-2011 10:07 AM
please give me clarity that how to capture key value after pressing and how to replace
thank u