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 EvenOddRenderer.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 pl.otros.logview.gui.renderers.StringRenderer.java

/**
 * @author Administrator
 */
public class StringRenderer implements TableCellRenderer {
    private final JLabel label;

From source file Main.java

class MyTableCellRenderer extends JLabel implements TableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int rowIndex, int vColIndex) {
        setText(value.toString());

        setToolTipText((String) value);

From source file Main.java

class MyTableHeaderRenderer extends JLabel implements TableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int rowIndex, int vColIndex) {
        setText(value.toString());
        setToolTipText((String) value);
        return this;

From source file JComponentTableCellRenderer.java

class JComponentTableCellRenderer implements TableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int row, int column) {
        return (JComponent) value;
    }
}

From source file GenderRenderer.java

class GenderRenderer extends JComboBox implements TableCellRenderer {

    public GenderRenderer() {
        super();
        addItem("Male");
        addItem("Female");

From source file org.martin.ftp.model.TCRFiles.java

/**
 *
 * @author martin
 */
public class TCRFiles implements TableCellRenderer {

From source file org.martin.ftp.model.TCRSearch.java

/**
 *
 * @author martin
 */
public class TCRSearch implements TableCellRenderer {

From source file ComboTableCellRenderer.java

class ComboTableCellRenderer implements ListCellRenderer, TableCellRenderer {
    DefaultListCellRenderer listRenderer = new DefaultListCellRenderer();

    DefaultTableCellRenderer tableRenderer = new DefaultTableCellRenderer();

    private void configureRenderer(JLabel renderer, Object value) {

From source file Main.java

class MyComboBoxRenderer extends JComboBox implements TableCellRenderer {
    public MyComboBoxRenderer(String[] items) {
        super(items);
    }

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,