net.sf.nachocalendar.table

Class JTableCustomizer


public final class JTableCustomizer
extends java.lang.Object

Author:
Ignacio Merani

Method Summary

static void
setDefaultEditor(JTable table)
Sets the default editor/renderer for Date objets to provided JTable.
static void
setDefaultEditor(JTable table, DateFormat format)
Sets the default editor/renderer for Date objets to provided JTable.
static void
setEditorForRow(JTable table, int row)
Sets the editor/renderer for Date objects to provided JTable, for the specified column.
static void
setEditorForRow(JTable table, int row, DateFormat format)
Sets the editor/renderer for Date objects to provided JTable, for the specified column.

Method Details

setDefaultEditor

public static void setDefaultEditor(JTable table)
Sets the default editor/renderer for Date objets to provided JTable.
Parameters:
table - JTable to set up

setDefaultEditor

public static void setDefaultEditor(JTable table,
                                    DateFormat format)
Sets the default editor/renderer for Date objets to provided JTable.
Parameters:
table - JTable to set up
format - Format to use

setEditorForRow

public static void setEditorForRow(JTable table,
                                   int row)
Sets the editor/renderer for Date objects to provided JTable, for the specified column.
Parameters:
table - JTable to set up
row - Column to apply

setEditorForRow

public static void setEditorForRow(JTable table,
                                   int row,
                                   DateFormat format)
Sets the editor/renderer for Date objects to provided JTable, for the specified column.
Parameters:
table - JTable to set up
row - Column to apply
format - Format to use