GWT formating flextable & Panel create on the fly

Posted by graybow on Stack Overflow See other posts from Stack Overflow or by graybow
Published on 2010-06-13T10:01:11Z Indexed on 2010/06/13 19:52 UTC
Read the original article Hit count: 204

Filed under:

I have a project showing comments database
I put the comments in FlexTable TabelKomen and I put the text in HTML format like this:

private static final int y=1;

public void UpdateTabelKomen(JsArray str){ 
 for(int i=0; i str.length(); i++){     
  UpdateTabelKomen(str.get(i)); 
}
}

public void UpdateTabelKomen(ImageDetailData str){
   TabelKomen.setWidget(y, 0, new HTML(str.getmember + "'s comment :" + str.getkomen()));
   TabelKomen.getFlexCellFormatter().setWordWrap(y, 0, true);
   y++;
}

The data was shown, but my text comment is not word wraped and make my flex table wider. Of course that will ruin my web appearance.
I change new HTML with new ScrolPanel(new HTML) seems not working.
so
How can I Format my FlexTable? is there any option beside flextable or scrollpanel?

© Stack Overflow or respective owner

Related posts about gwt