Hi every one,
I am developing an application,which have JTable.In this Jtable row cell,i am writing text,here i want the text to be multiline,for this i used final
JTextArea textArea = new JTextArea(5,20);
textArea.setWrapStyleWord(true);
textArea.setLineWrap(true);
editorComponent = textArea;
delegate = new DefaultCellEditor.EditorDelegate() {
public void setValue(Object value) {
textArea.setText((value != null) ? value.toString() : "");
}
public Object getCellEditorValue() {
return textArea.getText();
}
};
here the text is alingning in mutilines when we press anter but the row height is not increasing.i want to see the entire text writing in that cell same as in excel.
i dont want to use scroll panes.
Thank you very much