Java JTable Cell Renderer setCellRender(JTable table, int columnIdx, TableCellRenderer render)

Here you can find the source of setCellRender(JTable table, int columnIdx, TableCellRenderer render)

Description

set Cell Render

License

LGPL

Declaration

static public void setCellRender(JTable table, int columnIdx,
            TableCellRenderer render) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.swing.JTable;

import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;

public class Main {
    static public void setCellRender(JTable table, int columnIdx,
            TableCellRenderer render) {
        TableColumn o = table.getColumnModel().getColumn(columnIdx);
        o.setCellRenderer(render);/*from www  .j  a va2  s. com*/
    }
}

Related

  1. configureColumn(JTable table, int columnNumber, Integer width, TableCellRenderer renderer, TableCellEditor editor)
  2. createDefaultTableCellRenderer()
  3. getCellRenderer(final int hMargin)
  4. getDefaultRenderer(JTable table, TableColumn column)
  5. getTableCellRendererClass( Class propType)
  6. setTableRenderer(JTable table, Integer alignment)
  7. setUpCellRenderer(JTable table)