With TableCellRenderer, it is not possible to add any scroll behavior since it does not accept any events and only draws the component. You can, however, accomplish this using a custom TableCellEditor with getTableCellEditor:
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
JTextArea area = new JTextArea();
area.setLineWrap(true);
area.setText((String) value);
JScrollPane pane = new JScrollPane(area);
return pane;
}
, CellEditor. , isCellEditable :
public boolean isCellEditable(EventObject anEvent) {
return true;
}
, , -.
, . -, .