Skip to main content

Layered pane is opaque

1 reply [Last post]
wzberger
Offline
Joined: 2004-08-31
Points: 0

I'm wondering why the LayeredPane is now opaque by default (1.6.0_10-beta)?

public class LayeredPaneTest extends JFrame
{
public static void main(String[] args)
{
EventQueue.invokeLater(new Runnable(){
public void run()
{
new LayeredPaneTest();
}
});
}

public LayeredPaneTest()
{
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(new Dimension(400, 300));
setLocationRelativeTo(null);
setVisible(true);
add(new JLabel("JLayeredPane#isOpaque: " + getLayeredPane().isOpaque()));
validate();
}
}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
wzberger
Offline
Joined: 2004-08-31
Points: 0

The issue doesn't occur with the most recent beta (b22). Thanks.