addListener (SWT.Resize,  new Listener () { public void handleEvent (Event e) { resize(); } });
public ScrolledComposite(Composite parent, int style) {	super(parent, checkStyle(style));		ScrollBar hBar = getHorizontalBar ();	if (hBar != null) {		hBar.addListener (SWT.Selection, new Listener () {			public void handleEvent (Event e) {				hScroll();			}		});	}		ScrollBar vBar = getVerticalBar ();	if (vBar != null) {		vBar.addListener (SWT.Selection, new Listener () {			public void handleEvent (Event e) {				vScroll();			}		});	}		addListener (SWT.Resize,  new Listener () {		public void handleEvent (Event e) {			resize();		}	});		contentListener = new Listener() {		public void handleEvent(Event e) {			if (e.type != SWT.Resize) return;			resize();		}	};}