jdk/src/share/classes/sun/swing/JLightweightFrame.java
changeset 16706 4b243017cd27
parent 15983 26a673dec5b2
child 17415 62b97a10da72
equal deleted inserted replaced
16705:1caaa379eded 16706:4b243017cd27
    70      * instance.
    70      * instance.
    71      */
    71      */
    72     public JLightweightFrame() {
    72     public JLightweightFrame() {
    73         super();
    73         super();
    74         add(rootPane, BorderLayout.CENTER);
    74         add(rootPane, BorderLayout.CENTER);
    75         setBackground(new Color(0, 0, 0, 0));
       
    76         setFocusTraversalPolicy(new LayoutFocusTraversalPolicy());
    75         setFocusTraversalPolicy(new LayoutFocusTraversalPolicy());
       
    76         if (getGraphicsConfiguration().isTranslucencyCapable()) {
       
    77             setBackground(new Color(0, 0, 0, 0));
       
    78         }
    77     }
    79     }
    78 
    80 
    79     /**
    81     /**
    80      * Sets the {@link LightweightContent} instance for this frame.
    82      * Sets the {@link LightweightContent} instance for this frame.
    81      * The {@code JComponent} object returned by the
    83      * The {@code JComponent} object returned by the