The link between the forum and the mailing list was broken again, so my reply got lost:
I see that in some cases the window gets hidden/shown when changing L&Fs (like when switching from Windows to Metal), and in some it doesn't (Windows <-> Nimbus). The exception is only thrown in the first case. This is because the demo disposes and re-creates the frame when switching to a L&F which can/can't render its decorations (see test/ribbon/BasicCheckRibbon.java): [code] if (canBeDecoratedByLAF == wasDecoratedByOS) { boolean wasVisible = frame.isVisible(); frame.setVisible(false); frame.dispose(); if (!canBeDecoratedByLAF) { // see the java docs under the method // JFrame.setDefaultLookAndFeelDecorated(boolean // value) for description of these 2 lines: frame.setUndecorated(false); frame.getRootPane().setWindowDecorationStyle( JRootPane.NONE); } else { frame.setUndecorated(true); frame.getRootPane().setWindowDecorationStyle( JRootPane.FRAME); } frame.setVisible(wasVisible); wasDecoratedByOS = !frame.isUndecorated(); } [/code] Nothing illegal here, so the exception is a bug, please file it. Thanks, Dmitri [Message sent by forum member 'trembovetski' (trembovetski)] http://forums.java.net/jive/thread.jspa?messageID=328557 =========================================================================== To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".