Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

embedding objects in JTables

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U will have to implement ur own table renderer which returns the JTextArea as the renderer for the particular cell in ur table.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic