aspose file tools*
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
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.
 
Don't get me started about those stupid light bulbs.
 
subject: embedding objects in JTables