aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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: 19543
    
  16

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 - OCEEJBD 6
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: 19543
    
  16

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://aspose.com/file-tools
 
subject: using tab key in jtable,my table consists panels ad cells
 
Similar Threads
DataTip for a cell in JTable
Coloring the Row in JTable
JTable ........
Edit cell with another JTable
making a JTable column not visible