This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "embedding objects in JTables" Watch "embedding objects in JTables" New topic

embedding objects in JTables

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

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.
subject: embedding objects in JTables
Similar Threads
logic:iterate & DTO Problem
Any good Design Patterns for extending Value Objects?
Does one need Experience ?
Pass data to JSP page
this roundup question trips me up every time