public class MultiLineCellRenderer extends JTextArea implements
TableCellRenderer {
public MultiLineCellRenderer() {
setEditable(false);
setLineWrap(true);
setWrapStyleWord(true);
this.setBackground(new Color(164, 227, 243));
this.setBorder(null);
}
public Component getTableCellRendererComponent(JTable tb, Object value,
boolean isSelected,
boolean hasFocus, int row,
int column) {
if (value == null) {