Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/01/2008, 10:42
manoloro
 
Fecha de Ingreso: enero-2008
Mensajes: 3
Antigüedad: 16 años, 3 meses
Puntos: 0
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.