Re: Problema con JTable Lo estoy haciendo programando, pego aquí el fragmento de código a ver si me podéis decir el fallo: String titulo[]= {"c1", "c2"};
Object datos[][] = {{"un", "dos"}, {"tres", "cuatro"}};
JTable table = new JTable(datos, titulo);
table.setBounds(30, 50, 500,300);
JScrollPane sptable = new JScrollPane();
sptable.setLayout(null);
sptable.setBounds(30, 50, 500,300);
sptable.add(table);
pnlDataResults.add(sptable);
Un saludo. |