src/macosx/classes/com/apple/laf/AquaSpinnerUI.java

Print this page

        

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

@@ -186,10 +186,11 @@
             JComponent c) {
         super.getBaselineResizeBehavior(c);
         return spinner.getEditor().getBaselineResizeBehavior();
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     class TransparentButton extends JButton implements SwingConstants {
         boolean interceptRepaints = false;
 
         public TransparentButton() {
             super();

@@ -291,10 +292,11 @@
         map.put("increment", getNextButtonHandler());
         map.put("decrement", getPreviousButtonHandler());
         return map;
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private static class ArrowButtonHandler extends AbstractAction implements MouseListener {
         final javax.swing.Timer autoRepeatTimer;
         final boolean isNext;
         JSpinner spinner = null;
 

@@ -459,10 +461,11 @@
                 child.requestFocus();
             }
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     class SpinPainter extends JComponent {
         final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIStateFactory.getSpinnerArrows());
 
         ButtonModel fTopModel;
         ButtonModel fBottomModel;