8022512: JLightweightFrame: the content pane should be transparent
Reviewed-by: anthony
--- 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() {