rendered paste bodypackage org;
import java.awt.*;
import java.awt.event.*;
/**
*
* @author Desarrollo
*/
public class tituloDP {
private String nom_tit;
private int ncol=0;
private int nfil=0;
private String[] columnas=new String[this.ncol];
private String[] filas=new String[this.nfil];
private String[][] datos=new String[this.ncol][this.nfil];
private int band=0;
public tituloDP(){
nom_tit=new String("");
}
public void set_nom_tit(String n_tit){
this.nom_tit = n_tit;
}
public void set_ncol(int c){
this.ncol = c;
}
public void set_nfil(int f){
this.nfil = f;
}
public void set_columnas(String col, int i)
{ this.columnas=new String[ncol];
this.columnas[i]=col;
}
public void set_filas(String fil, int i)
{ this.filas=new String[nfil];
this.filas[i]=fil;
}
public void set_datos(String dat, int i, int j)
{ this.datos=new String[this.ncol][this.nfil];
if(i<this.ncol&&j<this.nfil)
{
this.datos[i][j]=dat;
System.out.println("Posiscion i: "+i+" j: "+j);
System.out.println(this.datos[i][j]);
}
else
System.out.println("Valores de i y j no validos");
}
// create getter methods
public String get_nom_tit(){
return this.nom_tit;
}
public int get_ncol(){
return this.ncol;
}
public int get_nfil(){
return this.nfil;
}
public String[] get_columnas(){
return this.columnas;
}
public String[] get_filas(){
return this.filas;
}
public String get_datos()[][]{
return this.datos;
}
}