How can i achieve the functionality of the TextListener for JTextField.
Here TextListener is only applicable for TextField. Its not applicable for JtextFiled.
I need the same functionlity of textalueChaned() for JTextField.
How can i achieve the functionality of the TextListener for JTextField.
Here TextListener is only applicable for TextField. Its not applicable for JtextFiled.
I need the same functionlity of textalueChaned() for JTextField.
Compare the sample code at
http://mindprod.com/jgloss/textfield.html
with
http://mindprod.com/jgloss/jtextfield.html
Hi..
Thanks 4 ur reply.
Here i have to set the JtextField as setEditable(false) on which i am going to apply the functioality like TextListener. For this i want the Same funtionality.
I achieved the TextListener functionality by using myJTextField.addFocusListener( new MyFocusListener(this) );
...
class MyFocusListener implements FocusListener{...
The
public void focusLost( FocusEvent e )
method has similar functionality as the
void textValueChanged(TextEvent e)
Bookmarks