Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Other components in a JTable  RSS feed

 
Matt Vording
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I was wondering if someone had an example of how to have custom components in a JTable : a calendar control in my case.
I looked in the Javadoc for JTable but the information there isn't clear enough for me.
Thanks,
Matt
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt,
U need to make use of TableCellRendrer class if u want to use the custom component in a cell.so that the component is drawn properly.

if u have any problem do get back. if u can tell exactly which class do u want to use then I may try that out for u.
I'll post the code as soon as i get time.
regards
deekasha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!