Example usage for javax.swing.table TableCellRenderer interface-usage

List of usage examples for javax.swing.table TableCellRenderer interface-usage

Introduction

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

Usage

From source file EvenOddRowCellRenderer.java

class MyRenderer implements TableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int row, int column) {
        JTextField editor = new JTextField();
        if (value != null)
            editor.setText(value.toString());

From source file com.sander.verhagen.frame.LineWrapCellRenderer.java

/**
 * {@link TableCellRenderer} implementation that wraps text contents of cells.
 * 
 * @author Sander Verhagen
 */
@SuppressWarnings("serial")

From source file com.opendoorlogistics.studio.tables.grid.HeaderCellRenderer.java

abstract class HeaderCellRenderer implements TableCellRenderer, MouseListener {

    protected final Color disabledColour = new Color(230, 230, 230);
    protected final JLabel columnNameLabel = new JLabel();
    protected final Color selectedColour = new Color(100, 150, 200);

From source file edu.harvard.mcz.imagecapture.ui.ProgressBarRenderer.java

/**
 * @author mole
 *
 */
public class ProgressBarRenderer implements TableCellRenderer {

From source file Main.java

class ColorTableCellRenderer extends JLabel implements TableCellRenderer {
    Color curColor;

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int rowIndex, int vColIndex) {
        if (curColor instanceof Color) {

From source file ExtendedTableCellRenderer.java

/**
A <tt>TableCellRenderer</tt> which is based on an <tt>ExtendedJLabel</tt> rather than
a <tt>JLabel</tt> like the <tt>javax.swing.table.DefaultTableCellRenderer</tt>.
    
@author <a href="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
@version $Revision: 1.4 $ $Date: 2003/08/18 07:48:28 $

From source file com.emr.schemas.ButtonColumn.java

/**
 *  The ButtonColumn class provides a renderer and an editor that looks like a
 *  JButton. The renderer and editor will then be used for a specified column
 *  in the table. The TableModel will contain the String to be displayed on
 *  the button.
 *

From source file com.moneydance.modules.features.importlist.table.HeaderRenderer.java

/**
 * This decorator class sets header-specific attributes to a
 * <code>TableCellRenderer</code>.
 *
 * @author Florian J. Breunig
 */

From source file RendererSample.java

class EvenOddRenderer implements TableCellRenderer {

    public static final DefaultTableCellRenderer DEFAULT_RENDERER = new DefaultTableCellRenderer();

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int row, int column) {

From source file org.drugis.addis.gui.renderer.EntityCellRenderer.java

public class EntityCellRenderer implements TableCellRenderer {
    private final TableCellRenderer d_defaultRenderer;

    public EntityCellRenderer(TableCellRenderer defaultRenderer) {
        d_defaultRenderer = defaultRenderer;
    }