This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes using tab key in jtable,my table consists panels ad cells Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "using tab key in jtable,my table consists panels ad cells" Watch "using tab key in jtable,my table consists panels ad cells" New topic
Author

using tab key in jtable,my table consists panels ad cells

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

my table has cell as jpanels,panels contains text fields.what i want is on pressing tab key next cell should focused.
how can i do that.
here is code


Sudheer
SCWCD, SCJP 5
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

The next cell is already focused with that code. You may not see it because all cells in the current row are marked as selected. Call table.setColumnSelectionAllowed(true) to select each cell separately instead of the entire row. You'll now see that tab highlights only the next cell.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

my problem is that i have to get focus in the text field of the next cell.
thanks for the reply
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

You didn't say that initially, didn't you? Do you want me to use my crystal ball to guess what you want?
sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

yes yes thats my mistake ,i didnt ask my question properly.sorry prime.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: using tab key in jtable,my table consists panels ad cells
 
Similar Threads
DataTip for a cell in JTable
JTable ........
Coloring the Row in JTable
Edit cell with another JTable
making a JTable column not visible