CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Java Programming

    I created a frame with a panel, several textfields and buttons. How can I automatically move the cursor to a specific textfield after clicking a button?


  2. #2
    Join Date
    Dec 1999
    Location
    Chonghe, Taipei County, Taiwan, R.O.C.
    Posts
    231

    Re: Java Programming

    you may use Component.requestFocus() method to get the focus of the
    specified component. The cursor should stay at that TextField object that
    you specified.
    good luck


  3. #3
    Guest

    Re: Java Programming

    Thanks, it works.


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

Featured