Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Panel loses focus when Tab is pressed?

 
Jeff Grant
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a panel which I am listening to with a KeyListener. I have just upgraded my system to Windows XP. That bug with the event.VK_TAB still persists... not that I thought upgrading my OS would fix it. Anyways, now when I press Tab, the panel I am listening to loses focus and I do not know which panel gains focus. Since I cannot tell what has focus and the VK_TAB key does not cause an action on my KeyListener, does anyone have a suggestion on how I can either disable the VK_TAB or have my Panel gain focus again? I even went as far as to create a thread in the file which calls this Panel into view which constantly has that window get focus every 10ms. Still doesn't work. Any help would be apprecaited. Thanks!
 
David G Risner
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using a FocusListener on your Panels?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic