• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with JTabbed pane focus

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have JTabbed pane set to the frame.This consists of two tabs. First tab say for ex: Tab 1 consists of some components. To one of the components in the Tab 1 i have set a short cut key Ctrl Up arrow.

When i start the application this short cut key works fine. But if i navigate from one tab to another tab, the focus remains on Tab 1 and the short cut key fails.

What should i do to solve this problem.

Thanks
Archana
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When the tabs are switched make a call to request the focus on your desired component.
 
Archana Venu Aradhyula
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

That is fine. If i explicitly click on the Tab 1 and select the short cut key (Ctrl UP Arrow) the focus is remained there only. Short cut key is not working.

Thanks
Archana
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly do you mean a "short cut key"? What do you mean "select the short cut key"?
Please use simple English. I am absolutely unable to understand "focus is remained there only" Where is there? The tab? the component?
reply
    Bookmark Topic Watch Topic
  • New Topic