Results 1 to 5 of 5

Thread: How Can i achieve the functionality of TextListener for JTextField

  1. #1
    Join Date
    Oct 2008
    Posts
    35

    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. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How Can i achieve the functionality of TextListener for JTextField


  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: How Can i achieve the functionality of TextListener for JTextField


  4. #4
    Join Date
    Oct 2008
    Posts
    35

    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. #5
    Join Date
    May 2008
    Posts
    2,012

    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)

Similar Threads

  1. Custom Background Icon for JTextField?
    By melston in forum Software Development
    Replies: 3
    Last Post: 22-08-2010, 12:02 PM
  2. Replies: 1
    Last Post: 27-04-2010, 10:26 AM
  3. Display JtextField in Jpanel
    By New ID in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 12:01 PM
  4. How to write a wrapper around the JTextField class?
    By MAHAH in forum Software Development
    Replies: 4
    Last Post: 12-02-2010, 07:01 PM
  5. Get Date by JTextField
    By Ash maker in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 05:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,361,515.88755 seconds with 16 queries