8022512: JLightweightFrame: the content pane should be transparent
authorant
Mon, 16 Sep 2013 18:00:06 +0400
changeset 20136 594c0830f18c
parent 20135 f6edca5afe49
child 20137 82f491ad2aed
8022512: JLightweightFrame: the content pane should be transparent Reviewed-by: anthony
jdk/src/share/classes/sun/swing/JLightweightFrame.java
--- a/jdk/src/share/classes/sun/swing/JLightweightFrame.java	Mon Sep 16 17:45:07 2013 +0400
+++ b/jdk/src/share/classes/sun/swing/JLightweightFrame.java	Mon Sep 16 18:00:06 2013 +0400
@@ -106,7 +106,7 @@
     public JLightweightFrame() {
         super();
         copyBufferEnabled = "true".equals(AccessController.
-            doPrivileged(new GetPropertyAction("jlf.copyBufferEnabled", "true")));
+            doPrivileged(new GetPropertyAction("swing.jlf.copyBufferEnabled", "true")));
 
         add(rootPane, BorderLayout.CENTER);
         setFocusTraversalPolicy(new LayoutFocusTraversalPolicy());
@@ -250,6 +250,11 @@
         };
         contentPane.setLayout(new BorderLayout());
         contentPane.add(component);
+        if ("true".equals(AccessController.
+            doPrivileged(new GetPropertyAction("swing.jlf.contentPaneTransparent", "false"))))
+        {
+            contentPane.setOpaque(false);
+        }
         setContentPane(contentPane);
 
         contentPane.addContainerListener(new ContainerListener() {