[Solved] unable to get selectedrow


I have just removed the following lines of code from the jComboBox.addActionListener(new ActionListener(){ ... });

What I am doing is, adding model to table two times that why it is not getting the selected row. After removing following lines of code it works fine.

    table = new JTable(model);
    table3 = new JTable(model1);


    table.setRowHeight(30);
    table3.setRowHeight(30);
    JScrollPane scroll=new JScrollPane(table);
    JScrollPane scroll1=new JScrollPane(table3);
    tablePanel.add(scroll1);
    tablePanel.add(scroll);

1

solved unable to get selectedrow