equal
deleted
inserted
replaced
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 |