1 19 package org.netbeans.modules.project.libraries.ui; 20 21 import org.netbeans.spi.project.libraries.LibraryImplementation; 22 23 import java.awt.Component ; 24 import javax.swing.DefaultListCellRenderer ; 25 import javax.swing.JList ; 26 27 class LibraryRenderer extends DefaultListCellRenderer { 28 29 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { 30 LibraryImplementation impl = (LibraryImplementation) value; 31 return super.getListCellRendererComponent(list, 32 LibrariesCustomizer.getLocalizedString(impl.getLocalizingBundle(),impl.getName()), 33 index, isSelected, cellHasFocus); 34 } 35 36 } 37 | Popular Tags |