This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes embedding objects in JTables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "embedding objects in JTables" Watch "embedding objects in JTables" New topic
Author

embedding objects in JTables

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Does anyone know if there is anyway to create a JTable whose cells are all JTextAreas? Is this humanly possible? Does it have to do something with the TableModel or cell renderer, neither or both? I know it supports a couple of objects by default (Integer, Boolean). Any help would be appreciated.
Satheesh Thekku Veethil
Greenhorn

Joined: Jan 31, 2002
Posts: 25
U will have to implement ur own table renderer which returns the JTextArea as the renderer for the particular cell in ur table.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: embedding objects in JTables