This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes TAB Key Functionality on JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TAB Key Functionality on JTable" Watch "TAB Key Functionality on JTable" New topic

TAB Key Functionality on JTable

KrishnaMohan Turlapati

Joined: Apr 19, 2004
Posts: 2
I've a JTable in a Container and when I press TAB key from JTable the Focus should be set to other Component in different container
How this can be achieved in JDK1.4?
Any Sample code?
Thanks in Advance
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1132

The Java Look and Feel Design Guidelines book(s) contain the information you seek.
The default behaviour for a "JTable" is to use the <CTRL>+<TAB> or <CTRL>+<SHIFT>+<TAB> key combinations in order to navigate out of the "JTable" -- in other words, to transfer focus to another component.
Good Luck,
Ling Chung
Ranch Hand

Joined: Mar 29, 2004
Posts: 39
How can i make sure when the JTable has focus not a single cell is selected but the entire row?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: TAB Key Functionality on JTable