What could I add to this code to allow the cell height to dynamically change as I edit the JTextArea
- by Dr. Plaguey
The derived classes I am using
public class TextAreaRenderer extends JTextArea
implements TableCellRenderer {
public TextAreaRenderer() {
setLineWrap(true);
setWrapStyleWord(true);
}
public Component getTableCellRendererComponent(JTable jTable,
Object obj, boolean isSelected, boolean hasFocus, int…