Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Panel loses focus when Tab is pressed?

 
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!
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using a FocusListener on your Panels?
 
    Bookmark Topic Watch Topic
  • New Topic