public static ScrollPanel newScrollPanelX (Widget contents, int maxWidth)
    {
        ScrollPanel panel = new ScrollPanel(contents);
        DOM.setStyleAttribute(panel.getElement(), "maxWidth", maxWidth + "px");
        return panel;
    }
public static ScrollPanel newScrollPanelX ( Widget contents , int maxWidth ) { ScrollPanel panel = new ScrollPanel ( contents ) ; DOM . setStyleAttribute ( panel . getElement ( ) , "maxWidth" , maxWidth + "px" ) ; return panel ; }
Wraps the supplied contents in a scroll panel with the specified maximum width.