In my Jtable instance a column have the jComboBox , now what i want is to select the row and column of the cell once the value of selected jcombobox is changed.
If i use the actionPerformed event of the jcombobox, and get the jtable.getSelectedrow and column. System give me last selected row and column instead of current row and column.
Please guide me what to do .. thank you
private void jComboBoxActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel model = (DefaultTableModel) jTable.getModel();
int selectedRow = jTable.getSelectedRow();
int selectedColumn = jTable.getSelectedColumn();
System.out.println("Row : " + selectedRow);
System.out.println("Column : " + selectedColumn);
}