8022512: JLightweightFrame: the content pane should be transparent
Reviewed-by: anthony
This commit is contained in:
parent
5b376db4f0
commit
70ab336e38
@ -106,7 +106,7 @@ public final class JLightweightFrame extends LightweightFrame implements RootPan
|
|||||||
public JLightweightFrame() {
|
public JLightweightFrame() {
|
||||||
super();
|
super();
|
||||||
copyBufferEnabled = "true".equals(AccessController.
|
copyBufferEnabled = "true".equals(AccessController.
|
||||||
doPrivileged(new GetPropertyAction("jlf.copyBufferEnabled", "true")));
|
doPrivileged(new GetPropertyAction("swing.jlf.copyBufferEnabled", "true")));
|
||||||
|
|
||||||
add(rootPane, BorderLayout.CENTER);
|
add(rootPane, BorderLayout.CENTER);
|
||||||
setFocusTraversalPolicy(new LayoutFocusTraversalPolicy());
|
setFocusTraversalPolicy(new LayoutFocusTraversalPolicy());
|
||||||
@ -250,6 +250,11 @@ public final class JLightweightFrame extends LightweightFrame implements RootPan
|
|||||||
};
|
};
|
||||||
contentPane.setLayout(new BorderLayout());
|
contentPane.setLayout(new BorderLayout());
|
||||||
contentPane.add(component);
|
contentPane.add(component);
|
||||||
|
if ("true".equals(AccessController.
|
||||||
|
doPrivileged(new GetPropertyAction("swing.jlf.contentPaneTransparent", "false"))))
|
||||||
|
{
|
||||||
|
contentPane.setOpaque(false);
|
||||||
|
}
|
||||||
setContentPane(contentPane);
|
setContentPane(contentPane);
|
||||||
|
|
||||||
contentPane.addContainerListener(new ContainerListener() {
|
contentPane.addContainerListener(new ContainerListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user