event to be used in JTextField
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, July 16, 2002 08:21 PM

hi.. i have 2 JTextFields on a panel. the question is, i want to key in only 4 letters in the first JTextField.after the 4th letter, i want the cursor to be at the 2nd JTextField( automatically). Previous, i used java.awt.TextField with the TextListener(Interface) and textValueChanged(for the method).. please help me.. thanks..

Re: event to be used in JTextField

Posted By:   Gautam_Marwaha  
Posted On:   Wednesday, July 17, 2002 12:29 AM

use jtextfield.getDocument().addDocumentListener(MyDocumentListener). Provide implementation for MyDocumentListener which implements DocumentListener interface
About | Sitemap | Contact