final jLabel descLabel = new jLabel();
des.setWordWrap(true);
des.setWidth("200px");
descLabel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
tableDisplay.setWidget(row, 2, des);
I'm placing the label inside a FlexTable
This is how it looks in the label. It's exceeding beyond the width I have given for the label. Appears odd. I mean to say that the long text without whitespace is not following the width I have given for the label. Tried giving this:
public class Jlabel extends Label{
public Jlabel () {
DOM.setStyleAttribute(this.getElement(), "word-wrap", "break-word");
}
wwwwwwwwwr ttttttttttt rrrrrrrrrrrrrrrrr yyyyyyyyyyyyyyyyr rriuoeggn ryyyyyy ryj klrtp;irptiml;rtkroitlrktrpotilr;gkawpeti;lrkgwptjkrotkw;'rtoi4p[tok