Jtable in Java, parameter error?

0

I'm having trouble passing the parameters to my jTable , these parameters being Object[][] and String[] .

tabela = new JTable(dados, colunas);

It does not work the data is an array like this:

dados = new Object[1][contador_de_grupos];

And the columns like this:

colunas[i] = "Grupo "+ i+1; 

Where column data is given the names of groups within a loop, since the v= header is not static, it will increase or decrease in size depending on the number of groups created in moment of calculation

    
asked by anonymous 12.12.2016 / 13:05

0 answers