asrNoComboBox.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent evt) { // TODO Auto-generated method stub String nm=asrNoComboBox.getSelectedItem().toString(); DefaultTableModel model = new DefaultTableModel(); table = new JTable(model){ public boolean isCellEditable(int rowIndex, int colIndex) { return true; //Disallow the editing of any cell }}; model.addColumn("Asr No"); model.addColumn("Intex Error"); model.addColumn("Message Type"); while (model.getRowCount()>0){ model.removeRow(0); } for(int i=0;i<IntexErrors.length;i++) { if(IntexErrors[i][0]!=null) if(IntexErrors[i][0].equalsIgnoreCase(nm)) { System.out.println(IntexErrors[i][0]); System.out.println(IntexErrors[i][1]); System.out.println(IntexErrors[i][2]); model.addRow(IntexErrors[i]); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)