jtextfield focus

Discussion in 'Java' started by baz83, Sep 4, 2012.

  1. baz83

    baz83 Guest

    How do I know if a JTextField has the focus?
    baz83, Sep 4, 2012
    #1
    1. Advertising

  2. baz83

    Eric Sosman Guest

    On 9/4/2012 6:11 AM, baz83 wrote:
    > How do I know if a JTextField has the focus?


    Use isFocusOwner() or addFocusListener().

    --
    Eric Sosman
    d
    "The speed at which the system fails is usually not important."
    Eric Sosman, Sep 4, 2012
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter

    JTextField JPassword

    Peter, Jul 11, 2003, in forum: Java
    Replies:
    0
    Views:
    3,296
    Peter
    Jul 11, 2003
  2. blue
    Replies:
    1
    Views:
    1,178
    Babu Kalakrishnan
    Dec 11, 2004
  3. Jason Cavett

    Handling Focus on JTextField

    Jason Cavett, Dec 2, 2008, in forum: Java
    Replies:
    2
    Views:
    3,071
    Jason Cavett
    Dec 2, 2008
  4. Roger
    Replies:
    3
    Views:
    310
  5. Paolo

    focus on jtextfield

    Paolo, Sep 4, 2012, in forum: Python
    Replies:
    5
    Views:
    179
    Mark Lawrence
    Sep 5, 2012
Loading...

Share This Page