How Can i achieve the functionality of TextListener for JTextField

  • Thread starter srinivas.veeranki
  • Start date
S

srinivas.veeranki

Hi...


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.

Thanks

Srinivas..
 
S

srinivas.veeranki

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 .

Thanks

Srinivas
 
Joined
Oct 21, 2008
Messages
1
Reaction score
0
hi,

>>How can i achieve the functionality of the TextListener for JTextField.
>>Here TextListener is only applicable for TextField. Its not applicable
for JtextFiled.

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)

algirdas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top