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

Print this page

        

@@ -52,19 +52,23 @@
     public CPlatformView() {
         super(0, true);
     }
 
     public void initialize(LWWindowPeer peer, CPlatformResponder responder) {
-        this.peer = peer;
-        this.responder = responder;
+        initializeBase(peer, responder);
 
         if (!LWCToolkit.getSunAwtDisableCALayers()) {
             this.windowLayer = new CGLLayer(peer);
         }
         setPtr(nativeCreateView(0, 0, 0, 0, getWindowLayerPtr()));
     }
 
+    protected void initializeBase(LWWindowPeer peer, CPlatformResponder responder) {
+        this.peer = peer;
+        this.responder = responder;        
+    }
+
     public long getAWTView() {
         return ptr;
         }
 
     public boolean isOpaque() {