*/
public class DegreeFormatListCellRenderer 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);
DegreeFormat degreeFormat = DegreeFormat.class.cast(value);
String text = RouteConverter.getBundle().getString("degreeformat-" + degreeFormat.name().toLowerCase());
label.setText(text);
return label;
}