Buggy code:
public class Tree extends Composite { NSTableColumn firstColumn ; NSTableColumn checkColumn ; NSBrowserCell dataCell ; NSTableHeaderView headerView ; TreeItem [ ] items ; int itemCount ; TreeColumn [ ] columns ; TreeColumn sortColumn ; int columnCount ; int sortDirection ; float levelIndent ; boolean ignoreExpand ; boolean ignoreSelect ; public Tree ( Composite parent , int style ) { } TreeItem _getItem ( TreeItem parentItem , int index , boolean create ) { } int accessibilityAttributeValue ( int id , int sel , int arg0 ) { } public void addSelectionListener ( SelectionListener listener ) { } public void addTreeListener ( TreeListener listener ) { } boolean checkData ( TreeItem item , boolean redraw ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } void clear ( TreeItem parentItem , int index , boolean all ) { } void clearAll ( TreeItem parentItem , boolean all ) { } public void clear ( int index , boolean all ) { } public void clearAll ( boolean all ) { } void clearCustomWidths ( TreeItem item ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createColumn ( TreeItem item , int index ) { } void createHandle ( ) { NSScrollView scrollWidget = ( ( NSScrollView ) ( new SWTScrollView ( ) . alloc ( ) ) ) ; scrollWidget . init ( ) ; scrollWidget . setHasHorizontalScroller ( true ) ; scrollWidget . setHasVerticalScroller ( true ) ; scrollWidget . setAutohidesScrollers ( true ) ; scrollWidget . setBorderType ( ( hasBorder ( ) ? OS . NSBezelBorder : OS . NSNoBorder ) ) ; NSOutlineView widget = ( ( NSOutlineView ) ( new SWTOutlineView ( ) . alloc ( ) ) ) ; <START_BUG> widget . init ( ) ; <END_BUG> widget . setAllowsMultipleSelection ( ( ( ( style ) & ( SWT . MULTI ) ) != 0 ) ) ; widget . setAllowsColumnReordering ( false ) ; widget . setAutoresizesOutlineColumn ( false ) ; widget . setAutosaveExpandedItems ( true ) ; widget . setDataSource ( widget ) ; widget . setDelegate ( widget ) ; widget . setDoubleAction ( sel_sendDoubleSelection ) ; if ( ! ( hasBorder ( ) ) ) widget . setFocusRingType ( NSFocusRingTypeNone ) ; headerView = ( ( NSTableHeaderView ) ( new SWTTableHeaderView ( ) . alloc ( ) . init ( ) ) ) ; widget . setHeaderView ( null ) ; NSString str = NSString . stringWith ( "" ) ; if ( ( ( style ) & ( SWT . CHECK ) ) != 0 ) { checkColumn = ( ( NSTableColumn ) ( new NSTableColumn ( ) . alloc ( ) ) ) ; checkColumn . initWithIdentifier ( checkColumn ) ; checkColumn . headerCell ( ) . setTitle ( str ) ; widget . addTableColumn ( checkColumn ) ; widget . setOutlineTableColumn ( checkColumn ) ; NSButtonCell cell = ( ( NSButtonCell ) ( new NSButtonCell ( ) . alloc ( ) . init ( ) ) ) ; checkColumn . setDataCell ( cell ) ; cell . setButtonType ( NSSwitchButton ) ; cell . setImagePosition ( NSImageOnly ) ; cell . setAllowsMixedState ( true ) ; checkColumn . setWidth ( getCheckColumnWidth ( ) ) ; checkColumn . setResizingMask ( NSTableColumnNoResizing ) ; checkColumn . setEditable ( false ) ; cell . release ( ) ; } firstColumn = ( ( NSTableColumn ) ( new NSTableColumn ( ) . alloc ( ) ) ) ; firstColumn . initWithIdentifier ( firstColumn ) ; firstColumn . setMinWidth ( 0 ) ; firstColumn . headerCell ( ) . setTitle ( str ) ; widget . addTableColumn ( firstColumn ) ; widget . setOutlineTableColumn ( firstColumn ) ; dataCell = ( ( NSBrowserCell ) ( new SWTBrowserCell ( ) . alloc ( ) . init ( ) ) ) ; dataCell . setLeaf ( true ) ; firstColumn . setDataCell ( dataCell ) ; levelIndent = widget . indentationPerLevel ( ) ; scrollView = scrollWidget ; view = widget ; } void createItem ( TreeColumn column , int index ) { } void createItem ( TreeItem item , TreeItem parentItem , int index ) { } void createWidget ( ) { } Color defaultBackground ( ) { } Color defaultForeground ( ) { } public void deselectAll ( ) { } void deregister ( ) { } public void deselect ( TreeItem item ) { } void destroyItem ( TreeColumn column ) { } void destroyItem ( TreeItem item ) { } boolean dragDetect ( int x , int y , boolean filter , boolean [ ] consume ) { } void drawInteriorWithFrame_inView ( int id , int sel , int cellFrame , int view ) { } void fixScrollBar ( ) { } int getCheckColumnWidth ( ) { } TreeColumn getColumn ( id id ) { } public TreeColumn getColumn ( int index ) { } public int getColumnCount ( ) { } public int [ ] getColumnOrder ( ) { } public TreeColumn [ ] getColumns ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } int getInsetWidth ( ) { } public TreeItem getItem ( int index ) { } public TreeItem getItem ( Point point ) { } public int getItemCount ( ) { } int getItemCount ( TreeItem item ) { } public int getItemHeight ( ) { } public TreeItem [ ] getItems ( ) { } public boolean getLinesVisible ( ) { } public TreeItem getParentItem ( ) { } public TreeItem [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public TreeColumn getSortColumn ( ) { } public int getSortDirection ( ) { } public TreeItem getTopItem ( ) { } void highlightSelectionInClipRect ( int id , int sel , int rect ) { }

Fix:
widget . initWithFrame ( new NSRect ( ) ) ;