aspose file tools
The moose likes Swing / AWT / SWT and the fly likes TAB Key Functionality on JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "TAB Key Functionality on JTable" Watch "TAB Key Functionality on JTable" New topic
Author

TAB Key Functionality on JTable

KrishnaMohan Turlapati
Greenhorn

Joined: Apr 19, 2004
Posts: 2
Hi
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: 1112

Krishna,
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,
Avi.
Ling Chung
Ranch Hand

Joined: Mar 29, 2004
Posts: 39
Avi,
How can i make sure when the JTable has focus not a single cell is selected but the entire row?
Thanks!!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: TAB Key Functionality on JTable
 
Similar Threads
How to catch key event in JTable
JTable
tabbing in JTable
Tabbing from a JComboBox inside JTable
JTable tabbing