It's not a secret anymore!
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
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.
I agree. Here's the link:
subject: embedding objects in JTables
It's not a secret anymore!