src/share/classes/javax/swing/plaf/metal/OceanTheme.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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

@@ -48,10 +48,11 @@
  * opaque.
  *
  * @since 1.5
  * @see MetalLookAndFeel#setCurrentTheme
  */
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 public class OceanTheme extends DefaultMetalTheme {
     private static final ColorUIResource PRIMARY1 =
                               new ColorUIResource(0x6382BF);
     private static final ColorUIResource PRIMARY2 =
                               new ColorUIResource(0xA3B8CC);

@@ -95,10 +96,11 @@
         }
     }
 
     // InternalFrame Icon
     // Delegates to different icons based on button state
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private static class IFIcon extends IconUIResource {
         private Icon pressed;
 
         public IFIcon(Icon normal, Icon pressed) {
             super(normal);