List of usage examples for javax.swing ListCellRenderer interface-usage
From source file org.drugis.addis.gui.renderer.CategoryComboboxRenderer.java
public class CategoryComboboxRenderer implements ListCellRenderer { private boolean d_alternate; private ListCellRenderer d_defaultRenderer; public CategoryComboboxRenderer(boolean hasPrevious) { d_defaultRenderer = new JComboBox().getRenderer();
From source file maltcms.ui.fileHandles.serialized.SeriesPaintComboBoxRenderer.java
/** * * @author nilshoffmann */ public class SeriesPaintComboBoxRenderer implements ListCellRenderer {
From source file ChooserTableSample.java
class ComboTableCellRenderer implements ListCellRenderer, TableCellRenderer { DefaultListCellRenderer listRenderer = new DefaultListCellRenderer(); DefaultTableCellRenderer tableRenderer = new DefaultTableCellRenderer(); private void configureRenderer(JLabel renderer, Object value) {
From source file de.unidue.inf.is.ezdl.gframedl.components.checkboxlist.CheckBoxListCellRenderer.java
/**
* Custom cell renderer for the {@link CheckBoxJList}.
*
* @author tbeckers
* @author tacke
*/
From source file EditableColorColumn.java
class ComboTableCellRenderer implements ListCellRenderer, TableCellRenderer { DefaultListCellRenderer listRenderer = new DefaultListCellRenderer(); DefaultTableCellRenderer tableRenderer = new DefaultTableCellRenderer(); private void configureRenderer(JLabel renderer, Object value) {
From source file org.mbari.aved.ui.classifier.ClassModelListRenderer.java
/**
* Configure to display the specified class image and class name
* when the component's <code>paint</code> method is then called to
* "render" the cell. This is intended to be used in both JComboBox
* and JList components.
* @author dcline
From source file Main.java
class CheckListRenderer extends JCheckBox implements ListCellRenderer { public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean hasFocus) { setEnabled(list.isEnabled()); setSelected(((CheckListItem) value).isSelected()); setFont(list.getFont());
From source file be.ac.ua.comp.scarletnebula.gui.ServerCellRenderer.java
class ServerCellRenderer implements ListCellRenderer { private static final long serialVersionUID = 1L; public static HashMap<Server, JPanel> panelMapping = new HashMap<Server, JPanel>(); private static Log log = LogFactory.getLog(ServerCellRenderer.class); ServerCellRenderer() {
From source file Main.java
class BookCellRenderer extends JLabel implements ListCellRenderer { private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128); public BookCellRenderer() { setOpaque(true); setIconTextGap(12);
From source file SwingListExample.java
class BookCellRenderer extends JLabel implements ListCellRenderer { private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128); public BookCellRenderer() { setOpaque(true); setIconTextGap(12);