| 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.
|
 |
 |
|
|
subject: using tab key in jtable,my table consists panels ad cells
|
|
|