Hi
here is the code
the above code is for creating SolutionCompatibilityMatrix of type DefaultTableModel .
Here drugs is an ArrayList object it can pass in
String[] and dmodel is an object of SolutionCompatibilityMatrix.
ArrayList drugs = new ArrayList();
drugs.add("Drug1");
drugs.add("Drug2");
drugs.add("Drug3");
drugs.add("Drug4");
String[] rowData=null;
rowData = new String[drugs.size()+1];
rowData[0] = row.getDescription().toString();
dmodel.addMatrixToTable(rowData);
Here my quesion is i am passing String[](rowData) to the method (addMatrixToTable) of SolutionCompatibilityMatrix,it can displaying some object code like abc@54432 but not the actual string value.how to resolve this problem ??? its an urgent!!!
thank you in advance ...