Example usage for javax.swing ListCellRenderer interface-usage

List of usage examples for javax.swing ListCellRenderer interface-usage

Introduction

In this page you can find the example usage for javax.swing ListCellRenderer interface-usage.

Usage

From source file Main.java

class FocusedTitleListCellRenderer implements ListCellRenderer {
    protected static Border noFocusBorder = new EmptyBorder(15, 1, 1, 1);

    protected static TitledBorder focusBorder = new TitledBorder(LineBorder.createGrayLineBorder(), "title");

    protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();

From source file SizingSamples.java

class FocusedTitleListCellRenderer implements ListCellRenderer {
    protected static Border noFocusBorder = new EmptyBorder(15, 1, 1, 1);

    protected static TitledBorder focusBorder = new TitledBorder(LineBorder.createGrayLineBorder(), "title");

    protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();

From source file net.sf.maltcms.chromaui.charts.renderer.XYPlotRendererListCellRenderer.java

/**
 *
 * @author Nils Hoffmann
 */
public class XYPlotRendererListCellRenderer extends JLabel implements ListCellRenderer {

From source file com.diversityarrays.kdxplore.curate.TraitInstanceCellRenderer.java

public class TraitInstanceCellRenderer extends DefaultTableCellRenderer implements ListCellRenderer<TraitInstance> {

    /**
     * Provide a unique TraitInstance that can be used, for example, at the top of a 
     * JComboBox and we render it as "Trait to Edit" 
     */

From source file Main.java

class TabListCellRenderer extends JLabel implements ListCellRenderer {
    protected static Border m_noFocusBorder = new EmptyBorder(1, 1, 1, 1);

    protected FontMetrics m_fm = null;

    public TabListCellRenderer() {

From source file Main.java

class ColorCellRenderer implements ListCellRenderer {
    protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
    private final static Dimension preferredSize = new Dimension(0, 20);

    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
            boolean cellHasFocus) {

From source file MainClass.java

class ColorCellRenderer implements ListCellRenderer {
    protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
    private final static Dimension preferredSize = new Dimension(0, 20);

    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
            boolean cellHasFocus) {

From source file TabRenendererList.java

class TabListCellRenderer extends JLabel implements ListCellRenderer {
    protected static Border m_noFocusBorder = new EmptyBorder(1, 1, 1, 1);

    protected FontMetrics m_fm = null;

    public TabListCellRenderer() {

From source file org.zephyrsoft.sdb2.gui.renderer.SongCellRenderer.java

/**
 * A {@link ListCellRenderer} for {@link Song} values.
 * 
 * @author Mathis Dirksen-Thedens
 */
public class SongCellRenderer implements ListCellRenderer<Song> {

From source file Main.java

class CheckComboRenderer implements ListCellRenderer {
    JCheckBox checkBox;

    public CheckComboRenderer() {
        checkBox = new JCheckBox();
    }