Buggy code:
public Shell ( Display display , int style ) { } Shell ( Display display , Shell parent , int style , int handle , boolean embedded ) { } public Shell ( Shell parent ) { } public Shell ( Shell parent , int style ) { } public static Shell internal_new ( Display display , int handle ) { } public static Shell cocoa_new ( Display display , int handle ) { } static int checkStyle ( int style ) { } boolean accessibilityIsIgnored ( int id , int sel ) { } public void addShellListener ( ShellListener listener ) { } void bringToTop ( boolean force ) { } boolean canBecomeKeyWindow ( int id , int sel ) { } void checkOpen ( ) { } public void close ( ) { } void closeWidget ( ) { } public Rectangle computeTrim ( int x , int y , int width , int height ) { } void createHandle ( ) { } void deregister ( ) { } void destroyWidget ( ) { } void drawBackground ( int id , NSGraphicsContext context , NSRect rect ) { } Control findBackgroundControl ( ) { } Composite findDeferredControl ( ) { } Cursor findCursor ( ) { } boolean fixResize ( ) { } void fixShell ( Shell newShell , Control control ) { } public void forceActive ( ) { } public int getAlpha ( ) { } public Rectangle getBounds ( ) { } public Rectangle getClientArea ( ) { } public boolean getFullScreen ( ) { } public int getImeInputMode ( ) { } public Point getLocation ( ) { } public boolean getMaximized ( ) { } Shell getModalShell ( ) { } public boolean getModified ( ) { } public boolean getMinimized ( ) { } public Point getMinimumSize ( ) { } float [ ] getParentBackground ( ) { } public Region getRegion ( ) { } public Shell getShell ( ) { } public Shell [ ] getShells ( ) { } public Point getSize ( ) { } float getThemeAlpha ( ) { } boolean hasBorder ( ) { } void helpRequested ( int id , int sel , int theEvent ) { } void invalidateVisibleRegion ( ) { } boolean isDrawing ( ) { } public boolean isEnabled ( ) { } boolean isEnabledCursor ( ) { } public boolean isVisible ( ) { } boolean makeFirstResponder ( int id , int sel , int notification ) { } void noResponderFor ( int id , int sel , int selector ) { } public void open ( ) { } public boolean print ( GC gc ) { } void register ( ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void releaseParent ( ) { } void releaseWidget ( ) { } public void removeShellListener ( ShellListener listener ) { } void sendToolTipEvent ( boolean enter ) { } public void setActive ( ) { } void setActiveControl ( Control control ) { } public void setAlpha ( int alpha ) { } void setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { if ( ( window ) == null ) return ; if ( fullScreen ) setFullScreen ( false ) ; int screenHeight = ( ( int ) ( display . getPrimaryFrame ( ) . height ) ) ; NSRect frame = window . frame ( ) ; if ( ! move ) { x = ( ( int ) ( frame . x ) ) ; y = screenHeight - ( ( int ) ( ( frame . y ) + ( frame . height ) ) ) ; } if ( ! resize ) { width = ( ( int ) ( frame . width ) ) ; height = ( ( int ) ( frame . height ) ) ; } frame . x = x ; frame . y = screenHeight - ( ( int ) ( y + height ) ) ; frame . width = width ; frame . height = height ; <START_BUG> window . setFrame ( frame , false ) ; <END_BUG> } void setClipRegion ( float x , float y ) { } public void setEnabled ( boolean enabled ) { } public void setFullScreen ( boolean fullScreen ) { } public void setMenuBar ( Menu menu ) { } public void setImeInputMode ( int mode ) { } public void setMaximized ( boolean maximized ) { } public void setMinimized ( boolean minimized ) { } public void setMinimumSize ( int width , int height ) { } public void setMinimumSize ( Point size ) { } public void setModified ( boolean modified ) { } public void setRegion ( Region region ) { } public void setText ( String string ) { } public void setVisible ( boolean visible ) { } void setWindowVisible ( boolean visible , boolean key ) { } void setZOrder ( ) { } void setZOrder ( Control control , boolean above ) { } boolean traverseEscape ( ) { } void updateModal ( ) { } void updateParent ( boolean visible ) { } void updateSystemUIMode ( ) { } int view_stringForToolTip_point_userData ( int id , int sel , int view , int tag , int point , int userData ) { } void windowDidBecomeKey ( int id , int sel , int notification ) { } void windowDidMove ( int id , int sel , int notification ) { } void windowDidResize ( int id , int sel , int notification ) { } void windowDidResignKey ( int id , int sel , int notification ) { } void windowSendEvent ( int id , int sel , int event ) { } boolean windowShouldClose ( int id , int sel , int window ) { } }

Fix:
window . setFrame ( frame , true ) ;