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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2005, 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
*** 198,207 **** --- 198,208 ---- */ public void setDefaultIcon(Icon newIcon) { defaultIcon = newIcon; } + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class IconLabel extends JPanel { JInternalFrame frame; IconLabel(JInternalFrame f) { super();
*** 289,298 **** --- 290,300 ---- SwingUtilities2.drawString(frame, g, title, 4, y); } } } + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class IconButton extends JButton { Icon icon; IconButton(Icon icon) { super(icon);