src/share/classes/com/sun/java/swing/plaf/motif/MotifBorders.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2010, 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 --- 1,7 ---- /* ! * Copyright (c) 1997, 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
*** 52,61 **** --- 52,62 ---- * * @author Amy Fowler */ public class MotifBorders { + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class BevelBorder extends AbstractBorder implements UIResource { private Color darkShadow = UIManager.getColor("controlShadow"); private Color lightShadow = UIManager.getColor("controlLtHighlight"); private boolean isRaised;
*** 85,94 **** --- 86,96 ---- } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class FocusBorder extends AbstractBorder implements UIResource { private Color focus; private Color control; public FocusBorder(Color control, Color focus) {
*** 111,120 **** --- 113,123 ---- return insets; } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ButtonBorder extends AbstractBorder implements UIResource { protected Color focus = UIManager.getColor("activeCaptionBorder"); protected Color shadow = UIManager.getColor("Button.shadow"); protected Color highlight = UIManager.getColor("Button.light"); protected Color darkShadow;
*** 189,198 **** --- 192,202 ---- return insets; } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ToggleButtonBorder extends ButtonBorder { public ToggleButtonBorder(Color shadow, Color highlight, Color darkShadow, Color focus) { super(shadow, highlight, darkShadow, focus); }
*** 222,231 **** --- 226,236 ---- insets.set(2, 2, 3, 3); return insets; } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class MenuBarBorder extends ButtonBorder { public MenuBarBorder(Color shadow, Color highlight, Color darkShadow, Color focus) { super(shadow, highlight, darkShadow, focus); }
*** 247,256 **** --- 252,262 ---- insets.set(6, 6, 6, 6); return insets; } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class FrameBorder extends AbstractBorder implements UIResource { JComponent jcomp; Color frameHighlight; Color frameColor;
*** 432,441 **** --- 438,448 ---- drawRightBorder(c, g, x, y, width, height); drawBottomBorder(c, g, x, y, width, height); } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class InternalFrameBorder extends FrameBorder { JInternalFrame frame; // The size of the bounding box for Motif frame corners.
*** 616,625 **** --- 623,633 ---- g.translate(-x, -y); } g.setColor(oldColor); } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class MotifPopupMenuBorder extends AbstractBorder implements UIResource { protected Font font; protected Color background; protected Color foreground; protected Color shadowColor;