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 Main.java

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

    DefaultTableCellRenderer tableRenderer = new DefaultTableCellRenderer();

    private void configureRenderer(JLabel renderer, Object value) {

From source file Main.java

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

    DefaultTableCellRenderer tableRenderer = new DefaultTableCellRenderer();

    private void configureRenderer(JLabel renderer, Object value) {

From source file SortedTableModel.java

class SortedColumnHeaderRenderer implements TableCellRenderer {

    protected TableCellRenderer textRenderer;
    protected SortedTableModel sortedModel;
    protected int sortColumn = -1;
    protected boolean sortAscending = true;

From source file MainClass.java

class VolumeRenderer extends JSlider implements TableCellRenderer {

    public VolumeRenderer() {
        super(SwingConstants.HORIZONTAL);
        setSize(115, 15);
    }

From source file Main.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 LabelHeaderSample.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 MixerTest2.java

class VolumeRenderer extends JSlider implements TableCellRenderer {

    public VolumeRenderer() {
        super(SwingConstants.HORIZONTAL);
        // set a starting size...some 1.2/1.3 systems need this
        setSize(115, 15);

From source file ExpenseReport.java

class CheckCellRenderer extends JCheckBox implements TableCellRenderer {
    protected static Border m_noFocusBorder;

    public CheckCellRenderer() {
        super();
        m_noFocusBorder = new EmptyBorder(1, 2, 1, 2);

From source file TableCellRenderTest.java

/**
 * This renderer renders a color value as a panel with the given color.
 */
class ColorTableCellRenderer extends JPanel implements TableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int row, int column) {

From source file MainClass.java

class VolumeRenderer extends JSlider implements TableCellRenderer {

    public VolumeRenderer() {
        super(SwingConstants.HORIZONTAL);
        setSize(115, 15);
    }