• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

TO get focus of a specified field on tab

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a panel and 3 text boxs and 3 labels. 2 labels and 2 text boxes are visible when the panel is visible. The third can be seen if the panel is scrolled. But what i want is that when i tab out of the 2 nd text box the third text box should be seen i.e. the panel should scroll automatically and the focus should go at the place of the cursor.What should I do?
Regards
Deboleena
[ May 10, 2004: Message edited by: Deboleena Chakraborty ]
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use a FocusListener with the JComponent method scrollRectToVisible.
 
reply
    Bookmark Topic Watch Topic
  • New Topic