|
| |||||||||
| Tags: achieve, functionality, jtextfield, textlistener |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How Can i achieve the functionality of TextListener 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. |
|
#2
| ||||
| ||||
| Re: How Can i achieve the functionality of TextListener for JTextField |
|
#3
| ||||
| ||||
| Re: How Can i achieve the functionality of TextListener for JTextField
Compare the sample code at http://mindprod.com/jgloss/textfield.html with http://mindprod.com/jgloss/jtextfield.html |
|
#4
| |||
| |||
| Re: How Can i achieve the functionality of TextListener for JTextField
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. |
|
#5
| |||
| |||
| Re: How Can i achieve the functionality of TextListener for JTextField
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) |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How Can i achieve the functionality of TextListener for JTextField" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Background Icon for JTextField? | melston | Software Development | 3 | 22-08-2010 01:02 PM |
| How to restore full functionality to a reduced functionality version of windows vista | Jonstek117 | Operating Systems | 1 | 27-04-2010 11:26 AM |
| Display JtextField in Jpanel | New ID | Software Development | 5 | 04-03-2010 12:01 PM |
| How to write a wrapper around the JTextField class? | MAHAH | Software Development | 4 | 12-02-2010 07:01 PM |
| Get Date by JTextField | Ash maker | Software Development | 5 | 12-02-2010 05:11 AM |