Матрица в JTable
Мне нужно заполнить JTable статическим 2D-массивом. Я'мы создали эту модель для:JTable
public class InsertMatToJTable extends AbstractTableModel{
String titre[] = {"age real", "sex real", "chest real", "resting_blood_pressure real","serum_cholestoral real","fasting_blood_sugar real","resting_electrocardiographic_results real","maximum_heart_rate_achieved real","exercise_induced_angina real","oldpeak real","slope real","number_of_major_vessels real","thal real", "class"};
String line;
float mat[][]= new float[270][13];
float matrice_normalise[][];
int i = 0,j=0;
public void InsertMatToJTable()
{
try {
FileInputStream fis = new FileInputStream("fichier.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
while ((line = br.readLine()) != null) {
StringTokenizer st1 = new StringTokenizer(line, " ");
while (st1.hasMoreTokens())
{mat[i][j]=Float.valueOf(st1.nextToken()).floatValue();
j++;
if (st1.hasMoreTokens()!=true) i++;
}
}
br.close();
}catch(Exception e) {
e.printStackTrace();}
Normalisation norm = new Normalisation(mat);
// for(i=0;i