composite.setLayout(gridLayout);
final ScrolledComposite scroll = new ScrolledComposite(composite, SWT.V_SCROLL | SWT.BORDER);
scroll.setLayout(new FillLayout());
final TabFolder tabFolder = new TabFolder(scroll, SWT.NONE);
tabFolder.addControlListener(new ControlAdapter(){
public void controlResized( ControlEvent e ) {
tabFolder.setSize(parent.getSize().x, parent.getSize().y);
}
});
scroll.setContent(tabFolder);
parent.addControlListener(new ControlAdapter(){
public void controlResized( ControlEvent e ) {
tabFolder.setSize(parent.getSize().x, parent.getSize().y);
}
});
scroll.setAlwaysShowScrollBars(true);
scroll.setExpandVertical(true);
scroll.setExpandHorizontal(true);
scroll.addControlListener(new ControlAdapter(){
public void controlResized( ControlEvent e ) {
scroll.setMinHeight(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
}
});
createGeneralTab(tabFolder);