jdk/src/share/classes/javax/swing/DefaultListCellRenderer.java
changeset 22574 7f8ce0c8c20a
parent 20458 f2423fb3fd19
child 25201 4adc75e0c4e5
equal deleted inserted replaced
22573:8f0344f13b7f 22574:7f8ce0c8c20a
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    68  * Please see {@link java.beans.XMLEncoder}.
    68  * Please see {@link java.beans.XMLEncoder}.
    69  *
    69  *
    70  * @author Philip Milne
    70  * @author Philip Milne
    71  * @author Hans Muller
    71  * @author Hans Muller
    72  */
    72  */
       
    73 @SuppressWarnings("serial") // Same-version serialization only
    73 public class DefaultListCellRenderer extends JLabel
    74 public class DefaultListCellRenderer extends JLabel
    74     implements ListCellRenderer<Object>, Serializable
    75     implements ListCellRenderer<Object>, Serializable
    75 {
    76 {
    76 
    77 
    77    /**
    78    /**
   339      * the same version of Swing.  As of 1.4, support for long term storage
   340      * the same version of Swing.  As of 1.4, support for long term storage
   340      * of all JavaBeans&trade;
   341      * of all JavaBeans&trade;
   341      * has been added to the <code>java.beans</code> package.
   342      * has been added to the <code>java.beans</code> package.
   342      * Please see {@link java.beans.XMLEncoder}.
   343      * Please see {@link java.beans.XMLEncoder}.
   343      */
   344      */
       
   345     @SuppressWarnings("serial") // Same-version serialization only
   344     public static class UIResource extends DefaultListCellRenderer
   346     public static class UIResource extends DefaultListCellRenderer
   345         implements javax.swing.plaf.UIResource
   347         implements javax.swing.plaf.UIResource
   346     {
   348     {
   347     }
   349     }
   348 }
   350 }