src/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -303,10 +303,11 @@
             }
         }
         return border;
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class XPFillBorder extends LineBorder implements UIResource {
         XPFillBorder(Color color, int thickness) {
             super(color, thickness);
         }
 

@@ -331,10 +332,11 @@
 
            return insets;
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class XPStatefulFillBorder extends XPFillBorder {
         private final Part part;
         private final Prop prop;
         XPStatefulFillBorder(Color color, int thickness, Part part, Prop prop) {
             super(color, thickness);

@@ -358,10 +360,11 @@
             lineColor = getColor(c, part, state, prop, Color.black);
             super.paintBorder(c, g, x, y, width, height);
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class XPImageBorder extends AbstractBorder implements UIResource {
         Skin skin;
 
         XPImageBorder(Component c, Part part) {
             this.skin = getSkin(c, part);

@@ -397,10 +400,11 @@
 
            return insets;
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class XPEmptyBorder extends EmptyBorder implements UIResource {
         XPEmptyBorder(Insets m) {
             super(m.top+2, m.left+2, m.bottom+2, m.right+2);
         }
 

@@ -672,10 +676,11 @@
                                     GraphicsConfiguration config, Object[] args) {
             return new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class GlyphButton extends JButton {
         private Skin skin;
 
         public GlyphButton(Component parent, Part part) {
             XPStyle xp = getXP();