How to get Focus to the cell in JTable, when its cells are rendered and edited?
The table i am using has combobox, Datepicker, RadioButtons, etc in the cells. When i am navigating inside table, i wont be able to know, in which cell i am. Focus is not visible. Tried,
table.setCellSelectionEnabled(true);
table.changeSelection(0, 1, false, false);
table.setColumnSelectionInterval(0, 0);
table.setRowSelectionInterval(0, 0);
table.requestFocus();
But nothing is getting focus in cell. Please help me out.
Re: How to get Focus to the cell in JTable, when its cells are rendered and edited?
Hello keang, thanks for ur reply. I tried the same thing which u hav mentioned, and also those things whic i specified in my 1st thread. Seems nothing working. No more extra code in my code Don't kno wat else sud i do.
Re: How to get Focus to the cell in JTable, when its cells are rendered and edited?
I didn't ask for your project code, I asked you to post some example code that demonstrates the problem ie a simple class that display a JTable and instructions on how to use it to show the issue you are having.
If you can't post any code to show how you are configuring and using the JTable then it's going to be hard to help you further.
Bookmarks