Results 1 to 4 of 4

Thread: Help With Changing Focus Events (Through Tabs)

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    49

    Help With Changing Focus Events (Through Tabs)

    Hi,

    I have 2 JTextField and 2 Buttons.

    What I want to do is that when I press tab, the focus is passed on to the next control.

    For example, when I start the application, I'm at textField1. I press the tab button on the keyboard, the focus is passed to textFied2, later button1 and button2.

    Can someone please enlighten me? Thank you.
    ______________________________________

    Warmest Regards,

    Lex
    ______________________________________



    :|: Don't Mess With The Predator :|:

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Help With Changing Focus Events (Through Tabs)

    Have a look at this (FocusListeners) : http://java.sun.com/docs/books/tutor...slistener.html


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Help With Changing Focus Events (Through Tabs)

    you could also try to use input maps.

  4. #4
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Help With Changing Focus Events (Through Tabs)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width