Author: bobtarling Date: 2011-04-11 07:26:51-0700 New Revision: 19216 Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/UMLListCellRenderer2.java
Log: Render a null cell as "<none>" Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/UMLListCellRenderer2.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/UMLListCellRenderer2.java?view=diff&pathrev=19216&r1=19215&r2=19216 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/uml/ui/UMLListCellRenderer2.java (original) +++ trunk/src/argouml-app/src/org/argouml/uml/ui/UMLListCellRenderer2.java 2011-04-11 07:26:51-0700 @@ -57,19 +57,12 @@ * children. * * This class must be efficient as it is called many 1000's of times. - * - * TODO: MVW: Since this class is the only one that knows - * which UML objects influence the rendering, should it - * not be listening to model change events? * * @author [email protected] * @since Jan 2, 2003 */ public class UMLListCellRenderer2 extends DefaultListCellRenderer { -// private static final Logger LOG = -// Logger.getLogger(UMLListCellRenderer2.class); - /** * True if the icon for the modelelement should be shown. The icon is, for * instance, a small class symbol for a class. @@ -154,7 +147,7 @@ return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); } else if (value == null || value.equals("")) { - JLabel label = new JLabel(" "); + JLabel label = new JLabel("<none>"); label.setIcon(null); return label; } ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2718868 To unsubscribe from this discussion, e-mail: [[email protected]].
