-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi.
I am filling a grid programatically in a composer class. My code is
Grid resultadoGrid = (Grid) this.resultadoWin.getFellow("grid2");//Path.getComponent("/resultadoWin/resultadoGrid") ;
Rows rows = resultadoGrid.getRows();
for (FechaExclusionBean fe : resultado.getFechaExclusionList()) {
Row row = new Row();
rows.appendChild(row);
row.getChildren().add(new Label(String.valueOf( fe.getFechaInicial()) ));
row.getChildren().add(new Label( String.valueOf( fe.getFechaFinal())));
row.getChildren().add( new Label( String.valueOf( fe.getDias() )) );
row.getChildren().add(new Label( Utilidades.format(fe.getTasa() )) );
row.getChildren().add(new Label(Utilidades.format(fe.getMonto())) );
row.getChildren().add(new Label(Utilidades.format(fe.getCalculo())) );
}
resultadoGrid.invalidate();
But when I show the window the header and data columns does not fit...
I did giving the grid a fixedLayout and a width...
Asked: 2008-12-09 21:05:28 +0800
Seen: 220 times
Last updated: Dec 09 '08