Hi Sandy
I presume you want "00:00:00" from the beginning?
A way to go would (very) roughly be like this:
Add a key listener:
selectTimeTextField.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
doMyStuff(evt);
}
});
Then do the stuff:
public void doMyStuff(){
//1 validate the whole
string, including ":"
//2 use getCaretPosition() and setCaretPosition(int) on the TextField.
}
Steffen