public class NumberPatternListCellRenderer extends DefaultListCellRenderer {
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
NumberPattern numberPattern = (NumberPattern) value;
String text = RouteConverter.getBundle().getString("number-pattern-" + numberPattern.name().toLowerCase());
label.setText(text);
return label;
}