changeset 20136:594c0830f18c

8022512: JLightweightFrame: the content pane should be transparent Reviewed-by: anthony
author ant
date Mon, 16 Sep 2013 18:00:06 +0400
parents f6edca5afe49
children 82f491ad2aed
files jdk/src/share/classes/sun/swing/JLightweightFrame.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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() {