Buggy code:
void drawRect ( int id , int sel , NSRect rect ) { } Widget findTooltip ( NSPoint pt ) { } void fixSelection ( int index , boolean add ) { } int getCheckColumnWidth ( ) { } public Rectangle getClientArea ( ) { } TableColumn getColumn ( id id ) { } public TableColumn getColumn ( int index ) { } public int getColumnCount ( ) { } public int [ ] getColumnOrder ( ) { } public TableColumn [ ] getColumns ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } public TableItem getItem ( int index ) { } public TableItem getItem ( Point point ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public TableItem [ ] getItems ( ) { } public boolean getLinesVisible ( ) { } public TableItem [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public int getSelectionIndex ( ) { } public int [ ] getSelectionIndices ( ) { } public TableColumn getSortColumn ( ) { } public int getSortDirection ( ) { } public int getTopIndex ( ) { } void highlightSelectionInClipRect ( int id , int sel , int rect ) { } int hitTestForEvent ( int id , int sel , int event , NSRect rect , int controlView ) { } int image ( int id , int sel ) { } NSRect imageRectForBounds ( int id , int sel , NSRect cellFrame ) { } public int indexOf ( TableColumn column ) { } public int indexOf ( TableItem item ) { } public boolean isSelected ( int index ) { } boolean isTrim ( NSView view ) { } int menuForEvent ( int id , int sel , int theEvent ) { } int nextState ( int id , int sel ) { } int numberOfRowsInTableView ( int id , int sel , int aTableView ) { } void register ( ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void remove ( int index ) { } public void remove ( int start , int end ) { } public void remove ( int [ ] indices ) { } public void removeAll ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void select ( int index ) { } public void select ( int start , int end ) { } public void select ( int [ ] indices ) { } void select ( int [ ] indices , int count , boolean clear ) { } public void selectAll ( ) { } void updateBackground ( ) { } public void setColumnOrder ( int [ ] order ) { } void setFont ( NSFont font ) { } public void setHeaderVisible ( boolean show ) { } void setImage ( int id , int sel , int arg0 ) { } public void setItemCount ( int count ) { } void setItemHeight ( int itemHeight ) { } void setItemHeight ( Image image , NSFont font , boolean set ) { } public void setRedraw ( boolean redraw ) { } public void setLinesVisible ( boolean show ) { } boolean setScrollWidth ( ) { } boolean setScrollWidth ( TableItem item ) { } boolean setScrollWidth ( TableItem [ ] items , boolean set ) { } public void setSelection ( int index ) { } public void setSelection ( int start , int end ) { } public void setSelection ( int [ ] indices ) { } public void setSelection ( TableItem item ) { } public void setSelection ( TableItem [ ] items ) { } void setSmallSize ( ) { } public void setSortColumn ( TableColumn column ) { } public void setSortDirection ( int direction ) { } void setTableEmpty ( ) { } public void setTopIndex ( int index ) { checkWidget ( ) ; NSTableView widget = ( ( NSTableView ) ( view ) ) ; int row = Math . max ( 0 , Math . min ( index , itemCount ) ) ; NSPoint pt = new NSPoint ( ) ; pt . x = scrollView . contentView ( ) . bounds ( ) . x ; <START_BUG> pt . y = ( ( widget . rowHeight ( ) ) + ( widget . intercellSpacing ( ) . height ) ) * row ; <END_BUG> view . scrollPoint ( pt ) ; } public void showColumn ( TableColumn column ) { } void showIndex ( int index ) { } public void showItem ( TableItem item ) { } public void showSelection ( ) { } void sendDoubleSelection ( ) { } boolean sendKeyEvent ( NSEvent nsEvent , int type ) { } void tableViewColumnDidMove ( int id , int sel , int aNotification ) { } void tableViewColumnDidResize ( int id , int sel , int aNotification ) { } void tableViewSelectionDidChange ( int id , int sel , int aNotification ) { } void tableView_didClickTableColumn ( int id , int sel , int tableView , int tableColumn ) { } int tableView_objectValueForTableColumn_row ( int id , int sel , int aTableView , int aTableColumn , int rowIndex ) { } void tableView_setObjectValue_forTableColumn_row ( int id , int sel , int aTableView , int anObject , int aTableColumn , int rowIndex ) { } boolean tableView_shouldEditTableColumn_row ( int id , int sel , int aTableView , int aTableColumn , int rowIndex ) { } void tableView_willDisplayCell_forTableColumn_row ( int id , int sel , int aTableView , int cell , int tableColumn , int rowIndex ) { } NSRect titleRectForBounds ( int id , int sel , NSRect cellFrame ) { } void updateCursorRects ( boolean enabled ) { } }

Fix:
pt . y = widget . frameOfCellAtColumn ( 0 , row ) . y ;