6737700: api/javax_swing/table/DefaultTableCellRenderer/index.html#getset:DefaultTableCellRenderer
authormalenkov
Wed, 24 Jun 2009 17:45:19 +0400
changeset 3096 9ed0268ea411
parent 3095 094359fe94bb
child 3097 5c07a20f8360
6737700: api/javax_swing/table/DefaultTableCellRenderer/index.html#getset:DefaultTableCellRenderer Reviewed-by: alexp
jdk/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java
--- a/jdk/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java	Wed Jun 24 13:59:54 2009 +0400
+++ b/jdk/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java	Wed Jun 24 17:45:19 2009 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 1998-2009 Sun Microsystems, Inc.  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
@@ -118,12 +118,12 @@
         if (System.getSecurityManager() != null) {
             if (border != null) return border;
             return SAFE_NO_FOCUS_BORDER;
-        } else {
+        } else if (border != null) {
             if (noFocusBorder == null || noFocusBorder == DEFAULT_NO_FOCUS_BORDER) {
                 return border;
             }
-            return noFocusBorder;
         }
+        return noFocusBorder;
     }
 
     /**