This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JTabbed pane focus

 
Archana Venu Aradhyula
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic