JDK-2188559 : api/javax_swing/table/DefaultTableCellRenderer/index.html#getset:DefaultTableCellRenderer
  • Type: Backport
  • Backport of: JDK-6737700
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2010-02-16
  • Updated: 2011-01-19
  • Resolved: 2010-02-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 Other
6u10Fixed OpenJDK6Fixed
Comments
SUGGESTED FIX # HG changeset patch # User malenkov # Date 1245851119 -14400 # Node ID 9f596519c6cc83a29c7bd3c3634a7ebf9f709c95 # Parent a3cd817dcc2e537d79464fabe34927e031430635 6737700: api/javax_swing/table/DefaultTableCellRenderer/index.html#getset:DefaultTableCellRenderer Reviewed-by: alexp --- a/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java Fri Feb 12 14:38:16 2010 +0900 +++ b/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 @@ public class DefaultTableCellRenderer ex 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; } /**
16-02-2010

EVALUATION Yes.
16-02-2010

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk6/jdk6-gate/jdk/rev/9f596519c6cc
16-02-2010