//titulos q van a tener las columnas de la tabla
String titulos[] = {"DIRECCION", "NOMBRE", "DESCRIPCION", "TIPO};
//con esto creo una matriz de string, q los registros de la tabla
String registro[][] = new String[ 5 ][ 4 ];
for ( int i = 0; i < 5; i++ ) {
registro[ i ][ 0 ] = "dir "+i;
registro[ i ][ 1 ] = "nom "+i;
registro[ i ][ 2 ] = "des "+i;
registro[ i ][ 3 ] = "tipo "+i;
}
//ahora creo la tabla y le paso los registros
this.jTable1 = new JTable( registro, titulos );
//ahora agrego la tabla ya creada, al panel scrolable
this.jScrollPane1.getViewport().add( this.jTable1, null );