List of usage examples for javax.swing DefaultListCellRenderer subclass-usage
From source file org.openmicroscopy.shoola.agents.util.DataObjectListCellRenderer.java
/**
* Renderer used to display various kind of <code>DataObject</code>s in
* a table.
*
* @author Jean-Marie Burel
* <a href="mailto:j.burel@dundee.ac.uk">j.burel@dundee.ac.uk</a>
From source file IteratorTest.java
class LocaleListCellRenderer extends DefaultListCellRenderer { public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean hasFocus) { Locale locale = (Locale) (value); return super.getListCellRendererComponent(list, locale.getDisplayName(), index, isSelected, hasFocus); }
From source file CheckBoxList.java
/** * * @author gtoffoli */ class CheckboxCellRenderer extends DefaultListCellRenderer { protected static Border noFocusBorder = new EmptyBorder(1, 1, 1, 1);
From source file tufts.vue.action.ActionUtil.java
class PaddedCellRenderer extends DefaultListCellRenderer { public Component getListCellRendererComponent(JList list, Object value, // value to display int index, // cell index boolean iss, // is selected boolean chf) // cell has focus? {