Search code examples
gwtsmartgwt

how can i make wrap text in GWT. I dont want one cell data to overflow into other cell destroying its boundaries


check highlighted block with red color

Please check image for reference. My requirement is to limit this text in the cell so that it does not remove partition line of next cell even when text is long. I am using rich text editor in gwt 2.1. I dont want one cell data to overflow into other cell destroying its boundaries

Any suggestions

Thanks


Solution

  • It can be done using:

    label.setOverflow(Overflow.HIDDEN);
    

    HIDDEN

    public static final Overflow HIDDEN Content that extends beyond the widget's width or height is clipped (hidden).