HELP in JTable

I need to load some date in a JTable wich already exists in theJInternalFrame component, the problem is when I try to put these data fromthe ResultSet in the JTable it does not work, I cant figure out what I amdoing wrong and I must that IÂ´ve tryed a lot, please have a look in my codeand in the execepion IÂ´ve got and give any idea to fix this:

linha.addElement(rs.getString("CODTABELA"));linha.addElement(rs.getString("NUMLINHA"));linha.addElement(rs.getString("TIPOTARIFA"));linha.addElement(rs.getString("QUANTINICIO"));linha.addElement(rs.getString("QUANTFINAL"));linha.addElement(T.paraMoeda(rs.getString("VALORFAIXA")));dados.addElement(linha);//modTabValores.addRow(linha);linha.clear();// <======== IF I DONT USE THIS LINE IT LOADS, BUT JUSTTHE FIRST VALUE FOUND IN THE// RESULTSET, OTHERWISE I GOT THE EXCEPTION:// java.lang.ArrayIndexOutOfBoundsException: 0>= 0}//modTabValores = new DefaultTableModel(dados,colunas);//tbValores.setModel(modTabValores);tbValores.repaint();