This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19651
    
  18

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: 19651
    
  18

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: using tab key in jtable,my table consists panels ad cells
 
Similar Threads
Edit cell with another JTable
making a JTable column not visible
Coloring the Row in JTable
DataTip for a cell in JTable
JTable ........