public java.awt.Component | getTableCellRendererComponent(javax.swing.JTable jTable, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
if (value == null) {
setText(MessageFormat.format(bundle.getString("PLURAL_PRIN_CAPTION"), new Object[] {"0"})); //NOI18N
}
else if (value instanceof Vector) {
if (((Vector)value).size() == 1)
setText(bundle.getString("SINGLE_PRIN_CAPTION")); //NOI18N
else
setText(MessageFormat.format(bundle.getString("PLURAL_PRIN_CAPTION"), new Object[] {new Integer(((Vector)value).size())})); //NOI18N
}
else
System.out.println(value);
return this;
|