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

Print this page

        

*** 165,178 **** platformWindow.initialize(target, this, ownerDelegate); } @Override public void initialize() { - super.initialize(); - - updateInsets(platformWindow.getInsets()); - if (getTarget() instanceof Frame) { setTitle(((Frame)getTarget()).getTitle()); setState(((Frame)getTarget()).getExtendedState()); } else if (getTarget() instanceof Dialog) { setTitle(((Dialog)getTarget()).getTitle()); --- 165,174 ----
*** 184,195 **** cachedFocusableWindow = getTarget().isFocusableWindow(); setOpacity(getTarget().getOpacity()); setOpaque(getTarget().isOpaque()); ! // Create surface data and back buffer ! replaceSurfaceData(1, null); } // Just a helper method public PlatformWindow getPlatformWindow() { return platformWindow; --- 180,192 ---- cachedFocusableWindow = getTarget().isFocusableWindow(); setOpacity(getTarget().getOpacity()); setOpaque(getTarget().isOpaque()); ! super.initialize(); ! ! updateInsets(platformWindow.getInsets()); } // Just a helper method public PlatformWindow getPlatformWindow() { return platformWindow;
*** 437,458 **** } @Override public void setOpacity(float opacity) { getPlatformWindow().setOpacity(opacity); } @Override ! public void setOpaque(boolean isOpaque) { if (this.isOpaque != isOpaque) { this.isOpaque = isOpaque; getPlatformWindow().setOpaque(isOpaque); replaceSurfaceData(); } } ! public boolean isOpaque() { return isOpaque; } @Override public void updateWindow() { --- 434,457 ---- } @Override public void setOpacity(float opacity) { getPlatformWindow().setOpacity(opacity); + repaintPeer(); } @Override ! public final void setOpaque(final boolean isOpaque) { if (this.isOpaque != isOpaque) { this.isOpaque = isOpaque; getPlatformWindow().setOpaque(isOpaque); replaceSurfaceData(); + repaintPeer(); } } ! public final boolean isOpaque() { return isOpaque; } @Override public void updateWindow() {
*** 1052,1061 **** --- 1051,1061 ---- insets = newInsets; } if (changed) { replaceSurfaceData(); + repaintPeer(); } return changed; }