jdk/src/java.desktop/share/classes/javax/swing/table/DefaultTableCellRenderer.java
changeset 29894 3e16b51732f5
parent 25859 3317bb8137f4
child 45025 9ad3afa82b5e
equal deleted inserted replaced
29893:fb1610d0d75a 29894:3e16b51732f5
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2015, 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
    93     * <code>getTableCellRendererComponent</code> method and set the border
    93     * <code>getTableCellRendererComponent</code> method and set the border
    94     * of the returned component directly.
    94     * of the returned component directly.
    95     */
    95     */
    96     private static final Border SAFE_NO_FOCUS_BORDER = new EmptyBorder(1, 1, 1, 1);
    96     private static final Border SAFE_NO_FOCUS_BORDER = new EmptyBorder(1, 1, 1, 1);
    97     private static final Border DEFAULT_NO_FOCUS_BORDER = new EmptyBorder(1, 1, 1, 1);
    97     private static final Border DEFAULT_NO_FOCUS_BORDER = new EmptyBorder(1, 1, 1, 1);
       
    98     /**
       
    99      * A border without focus.
       
   100      */
    98     protected static Border noFocusBorder = DEFAULT_NO_FOCUS_BORDER;
   101     protected static Border noFocusBorder = DEFAULT_NO_FOCUS_BORDER;
    99 
   102 
   100     // We need a place to store the color the JLabel should be returned
   103     // We need a place to store the color the JLabel should be returned
   101     // to after its foreground and background colors have been set
   104     // to after its foreground and background colors have been set
   102     // to the selection background color.
   105     // to the selection background color.