Salve a Tutti....
avrei bisogno di un aiuto in qunato non riesco a settare i valori per un Object destinato ad una JTable, come vedete dal seguenteHo provato anche così ma no va...codice:........ public Object[][] getRowData() { System.err.println("getIdElenco.length= "+getIdElenco().length); int lung = getIdElenco().length; Object[][] rowData = new Object[lung][]; String[] id = getIdElenco(); //<--- PRIMA COLONNA VALORI String[] inout = getInoutElenco(); //<--- SECONDA COLONNA VALORI String[] importo = getImportoElenco(); //<--- TERZA COLONNA VALORI String[] data = getDataElenco(); //<--- QUARTA COLONNA VALORI String[] motivo = getMotivoElenco(); //<--- QUINTA COLONNA VALORI String[] categoria = getCategoriaElenco(); //<--- SESTA COLONNA VALORI String[] saldo = getSaldoElenco(); //<--- SETTIMA COLONNA VALORI for(int i=0; i<lung; i++) { rowData[i][] = {{id[i],inout[i],importo[i],data[i],motivo[i],categoria[i],saldo[i}}; }; return rowData; } ........codice:Object[][] rowData = {getIdElenco(),getInoutElenco(),getImportoElenco(),getDataElenco(),getMotivoElenco(),getCategoriaElenco(),getSaldoElenco()};

Rispondi quotando