This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
I agree. Here's the link:
subject: embedding objects in JTables
It's not a secret anymore!