Buggy code:
abstract class Tab { Shell shell ; Display display ; Button borderButton ; Button enabledButton ; Button visibleButton ; Button backgroundImageButton ; Button preferredButton ; Button tooSmallButton ; Button smallButton ; Button largeButton ; Button fillHButton ; Button fillVButton ; Composite tabFolderPage ; Group exampleGroup ; Group controlGroup ; Group listenersGroup ; Group otherGroup ; Group sizeGroup ; Group styleGroup ; Group colorGroup ; final ControlExample instance ; static final int TOO_SMALL_SIZE = 10 ; static final int SMALL_SIZE = 50 ; static final int LARGE_SIZE = 100 ; static final boolean RTL_SUPPORT_ENABLE = false ; Group orientationGroup ; Button rtlButton ; Button ltrButton ; Button defaultOrietationButton ; static final int IMAGE_SIZE = 12 ; static final int FOREGROUND_COLOR = 0 ; static final int BACKGROUND_COLOR = 1 ; static final int FONT = 2 ; Table colorAndFontTable ; ColorDialog colorDialog ; FontDialog fontDialog ; Color foregroundColor ; Color backgroundColor ; Font font ; Text eventConsole ; boolean logging = false ; boolean [ ] eventsFilter ; Combo nameCombo ; Label returnTypeLabel ; Button getButton ; Button setButton ; Text setText ; Text getText ; static final String [ ] EVENT_NAMES = new String [ ] { "None" , "KeyDown" , "KeyUp" , "MouseDown" , "MouseUp" , "MouseMove" , "MouseEnter" , "MouseExit" , "MouseDoubleClick" , "Paint" , "Move" , "Resize" , "Dispose" , "Selection" , "DefaultSelection" , "FocusIn" , "FocusOut" , "Expand" , "Collapse" , "Iconify" , "Deiconify" , "Close" , "Show" , "Hide" , "Modify" , "Verify" , "Activate" , "Deactivate" , "Help" , "DragDetect" , "Arm" , "Traverse" , "MouseHover" , "HardKeyDown" , "HardKeyUp" , "MenuDetect" , "SetData" , "MouseWheel" } ; Tab ( ControlExample instance ) { } void createControlGroup ( ) { } void createSetGetGroup ( ) { } void createControlWidgets ( ) { } void createColorAndFontGroup ( ) { colorGroup = new Group ( controlGroup , SWT . NONE ) ; colorGroup . setLayout ( new GridLayout ( 2 , false ) ) ; colorGroup . setLayoutData ( new GridData ( SWT . FILL , SWT . FILL , true , true ) ) ; colorGroup . setText ( ControlExample . getResourceString ( "Colors" ) ) ; colorAndFontTable = new Table ( colorGroup , ( ( SWT . BORDER ) | ( SWT . V_SCROLL ) ) ) ; <START_BUG> colorAndFontTable . setLayoutData ( new GridData ( SWT . FILL , SWT . FILL , true , true , 1 , 2 ) ) ; <END_BUG> TableItem item = new TableItem ( colorAndFontTable , SWT . None ) ; item . setText ( ControlExample . getResourceString ( "Foreground_Color" ) ) ; colorAndFontTable . setSelection ( 0 ) ; item = new TableItem ( colorAndFontTable , SWT . None ) ; item . setText ( ControlExample . getResourceString ( "Background_Color" ) ) ; item = new TableItem ( colorAndFontTable , SWT . None ) ; item . setText ( ControlExample . getResourceString ( "Font" ) ) ; Button changeButton = new Button ( colorGroup , SWT . PUSH ) ; changeButton . setText ( ControlExample . getResourceString ( "Change" ) ) ; Button defaultsButton = new Button ( colorGroup , SWT . PUSH ) ; defaultsButton . setText ( ControlExample . getResourceString ( "Defaults" ) ) ; colorDialog = new ColorDialog ( shell ) ; fontDialog = new FontDialog ( shell ) ; changeButton . addSelectionListener ( new SelectionAdapter ( ) { public void widgetSelected ( SelectionEvent event ) { if ( ( colorAndFontTable . getSelectionCount ( ) ) != 1 ) return ; int index = colorAndFontTable . getSelectionIndex ( ) ; changeFontOrColor ( index ) ; } } ) ; defaultsButton . addSelectionListener ( new SelectionAdapter ( ) { public void widgetSelected ( SelectionEvent e ) { resetColorsAndFonts ( ) ; } } ) ; shell . addDisposeListener ( new DisposeListener ( ) { public void widgetDisposed ( DisposeEvent event ) { if ( ( foregroundColor ) != null ) foregroundColor . dispose ( ) ; if ( ( backgroundColor ) != null ) backgroundColor . dispose ( ) ; if ( ( font ) != null ) font . dispose ( ) ; foregroundColor = null ; backgroundColor = null ; font = null ; } } ) ; } void changeFontOrColor ( int index ) { } void createOtherGroup ( ) { } void createEventConsolePopup ( ) { } void createExampleGroup ( ) { } void createExampleWidgets ( ) { } void createListenerSelectionDialog ( ) { } void createListenersGroup ( ) { } String [ ] getMethodNames ( ) { } void createSetGetDialog ( int x , int y , String [ ] methodNames ) { } void resetLabels ( ) { } String setMethodName ( String methodRoot ) { } String parameterInfo ( String methodRoot ) { } void getValue ( ) { } Class getReturnType ( String methodRoot ) { } void setValue ( ) { } Object [ ] parameterForType ( String typeName , String value , Control control ) { } void createOrientationGroup ( ) { } void createSizeGroup ( ) { } void createStyleGroup ( ) { } Composite createTabFolderPage ( TabFolder tabFolder ) { } void disposeExampleWidgets ( ) { } Image colorImage ( Color color ) { } Image fontImage ( Font font ) { } String [ ] getCustomEventNames ( ) { } int getDefaultStyle ( ) { } Control [ ] getExampleWidgets ( ) { } Item [ ] getExampleWidgetItems ( ) { } String getTabText ( ) { } void hookExampleWidgetListeners ( ) { } void hookCustomListener ( String eventName ) { } void hookListeners ( Widget widget ) { } void log ( Event event ) { } void log ( String string ) { } void log ( String eventName , TypedEvent event ) { } void recreateExampleWidgets ( ) { } void resetColorsAndFonts ( ) { } void setExampleWidgetBackground ( ) { } void setExampleWidgetEnabled ( ) { } void setExampleWidgetFont ( ) { }

Fix:
colorAndFontTable . setLayoutData ( new GridData ( SWT . FILL , SWT . FILL , true , true , 2 , 1 ) ) ;