Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how do i add a text area to table column

Murray9654May 24 2012 — edited Aug 2 2012
Hi I have added a JTextArea to JTable column as below
DefaultTableModel model=new DefaultTableModel ();
Object rowdata={"",new JTextArea(),""};
model.addRow(rowData);
when i did the above it did not added text area to column. Instaed it added a string which is obtained by toString method. How do i add a component to the JTable column. Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2012
Added on May 24 2012
4 comments
2,527 views