qual m�todo eu uso para encher uma JTable sem
usar o construtor?
..
tipo eu estou tentando usar dois Vector:
Vector coluna com as colunas da tabela:
coluna.addElement( rsmd.getColumnName( i ) );
e Vector linha:
linha.addElement( getProxLinha( rs, rsmd ) );
..
depois eu tento usar o construtor:
table = new JTable(linha,coluna);
mas n�o funciona....
j� tentei tamb�m:
table.setModel(new DefaultTableModel(linha,coluna));
mas tamb�m n�o funciona...
algu�m pode me ajudar?
obs. no exemplo que estou testando o Vector linha depois do
select vem carregado da seguinte maneira:
[[6.0, 20011], [8.0, 20012],[12, 200122]]
e a coluna: [Valor, Mat]
..
Ilson



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jug-petropolis/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Atrašyti