JLabel testLabel = null;
@Override
public Component getListCellRendererComponent(JList list, Object ovalue, int index,
boolean isSelected, boolean cellHasFocus) {
ListItem value = (ListItem) ovalue;
if (value.isCategory()) {
if (categoryLabel == null) {
categoryLabel = new JLabel();
categoryLabel.setOpaque(true);
categoryLabel.setBackground(new Color(.5f, .5f, .6f));
categoryLabel.setForeground(Color.white);