-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
beta
-
generic
-
generic
Name: clC74495 Date: 10/13/98
DefaultListCellRenderer constructor always creates new instances
of static variable noFocusBorder. Should only create new border
when null (first time through).
Change
noFocusBorder = new EmptyBorder(1, 1, 1, 1);
to
if (noFocusBorder == null)
noFocusBorder = new EmptyBorder(1, 1, 1, 1);
I supposed using BorderFactory is another alternative to if block,
as it will cache and return same border.
(Review ID: 40198)
======================================================================