< prev index next >

src/java.desktop/share/classes/sun/swing/PrintColorUIResource.java

Print this page

        

*** 70,80 **** * serialization. Since {@code PrintColorUIResource} resides in the * sun.swing package, access can be disallowed to it by a security * manager. When access is disallowed, deserialization of any object * with reference to a {@code PrintColorUIResource} fails. * <p> ! * Since {@code PrintColorUIResource) is used only by Swing's look * and feels, and we know that UI supplied colors are replaced after * deserialization when the UI is re-installed, the only important * aspect of the {@code PrintColorUIResource} that needs to be * persisted is the fact that it is a {@code ColorUIResource}. As * such, we can avoid the problem outlined above by replacing --- 70,80 ---- * serialization. Since {@code PrintColorUIResource} resides in the * sun.swing package, access can be disallowed to it by a security * manager. When access is disallowed, deserialization of any object * with reference to a {@code PrintColorUIResource} fails. * <p> ! * Since {@code PrintColorUIResource} is used only by Swing's look * and feels, and we know that UI supplied colors are replaced after * deserialization when the UI is re-installed, the only important * aspect of the {@code PrintColorUIResource} that needs to be * persisted is the fact that it is a {@code ColorUIResource}. As * such, we can avoid the problem outlined above by replacing
< prev index next >