src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java

Print this page

        

*** 898,909 **** long nativePeer = 0L; if (platformWindow instanceof CPlatformWindow) { nativePeer = ((CPlatformWindow) platformWindow).getContentView().getAWTView(); } else if (platformWindow instanceof CViewPlatformEmbeddedFrame){ nativePeer = ((CViewPlatformEmbeddedFrame) platformWindow).getNSViewPtr(); - } else { - throw new IllegalArgumentException("Unsupported platformWindow implementation"); } return nativePeer; } /************************************************************* --- 898,907 ----