Problem in cell selection in JTable Java Swing
853982Apr 8 2011 — edited Apr 11 2011hii
I am using JTable that shows data from database. I have developed one functionality. I change one cell value and then select multiple cell. If I press F12 function key then it copies first selected value and past it to another selected cells. it is working properly but when I press F12 it sets the last selected cell in editable mode. I want that all cell which has been pasted should be selected (with default blue colour not in editing mode). I am using ListSelectionListener for JTable Cell Selection and KeyListener for F12 functionality.
Please give some solution
I can not override editCellAt Method because i have already extended JFrame. and i tried to do this with Jtable.getSelectedColumn and getSelectedRow it is displaying the same value, by this how can I get the particular area of selection means Row nd Column Selected.
How would I know the current selection when user selects more than one cell???
Thanks
Edited by: 850979 on 11-Apr-2011 02:13
Edited by: 850979 on 11-Apr-2011 03:59