700 if (shape != null) {
701 g.setClip(shape);
702 }
703 super.print(g);
704 }
705
706 private void replaceSurfaceDataRecursively(Component c) {
707 if (c instanceof Container) {
708 for (Component child : ((Container)c).getComponents()) {
709 replaceSurfaceDataRecursively(child);
710 }
711 }
712 final Object cp = AWTAccessor.getComponentAccessor().getPeer(c);
713 if (cp instanceof WComponentPeer) {
714 ((WComponentPeer)cp).replaceSurfaceDataLater();
715 }
716 }
717
718 public final Graphics getTranslucentGraphics() {
719 synchronized (getStateLock()) {
720 return isOpaque ? null : painter.getBackBuffer(false).getGraphics();
721 }
722 }
723
724 @Override
725 public void setBackground(Color c) {
726 super.setBackground(c);
727 synchronized (getStateLock()) {
728 if (!isOpaque && ((Window)target).isVisible()) {
729 updateWindow(true);
730 }
731 }
732 }
733
734 private native void setOpacity(int iOpacity);
735 private float opacity = 1.0f;
736
737 @Override
738 public void setOpacity(float opacity) {
739 if (!((SunToolkit)((Window)target).getToolkit()).
740 isWindowOpacitySupported())
|
700 if (shape != null) {
701 g.setClip(shape);
702 }
703 super.print(g);
704 }
705
706 private void replaceSurfaceDataRecursively(Component c) {
707 if (c instanceof Container) {
708 for (Component child : ((Container)c).getComponents()) {
709 replaceSurfaceDataRecursively(child);
710 }
711 }
712 final Object cp = AWTAccessor.getComponentAccessor().getPeer(c);
713 if (cp instanceof WComponentPeer) {
714 ((WComponentPeer)cp).replaceSurfaceDataLater();
715 }
716 }
717
718 public final Graphics getTranslucentGraphics() {
719 synchronized (getStateLock()) {
720 return isOpaque ? null : painter.getGraphics(false);
721 }
722 }
723
724 @Override
725 public void setBackground(Color c) {
726 super.setBackground(c);
727 synchronized (getStateLock()) {
728 if (!isOpaque && ((Window)target).isVisible()) {
729 updateWindow(true);
730 }
731 }
732 }
733
734 private native void setOpacity(int iOpacity);
735 private float opacity = 1.0f;
736
737 @Override
738 public void setOpacity(float opacity) {
739 if (!((SunToolkit)((Window)target).getToolkit()).
740 isWindowOpacitySupported())
|