rowspan
Lo que si que estoy perdida es para hacer el comando de union de celdas pero en vertical, es decir rowspan.
El codigo q utilizo para dibujar la celda es el siguiente.
protected void drawCellBorder(Graphics g, Shape s) {
Rectangle2D r = s.getBounds2D();
Graphics2D g2 = (Graphics2D) g;
g2.setColor(Color.BLACK);
int hijos = getViewCount();
//traza(0,"num Hijos = "+hijos,null);
for( int i = 0; i<hijos; i++) {
int width = getSpan(View.X_AXIS,i);
int nwidth = getColumnsOccupied(getView(i));
int height = getSpan(View.Y_AXIS,i);
int nheight = getRowsOccupied(getView(i));
r.setRect(r.getX(), r.getY(), width, height);
g2.draw(r);
r.setRect(r.getX()+width, r.getY() , width, height);
}
}
alguien me puede ayudar?
gracias
El codigo q utilizo para dibujar la celda es el siguiente.
protected void drawCellBorder(Graphics g, Shape s) {
Rectangle2D r = s.getBounds2D();
Graphics2D g2 = (Graphics2D) g;
g2.setColor(Color.BLACK);
int hijos = getViewCount();
//traza(0,"num Hijos = "+hijos,null);
for( int i = 0; i<hijos; i++) {
int width = getSpan(View.X_AXIS,i);
int nwidth = getColumnsOccupied(getView(i));
int height = getSpan(View.Y_AXIS,i);
int nheight = getRowsOccupied(getView(i));
r.setRect(r.getX(), r.getY(), width, height);
g2.draw(r);
r.setRect(r.getX()+width, r.getY() , width, height);
}
}
alguien me puede ayudar?
gracias
