
24/01/2008, 10:42
|
| | Fecha de Ingreso: enero-2008
Mensajes: 3
Antigüedad: 17 años, 1 mes 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. |