Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Related to JTable  RSS feed

 
prathap venkata naga yelugula
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Friends,

Can we add 2 components in one cell for a JTable Column Value.

I need to add one check box as well as some Other top/bottom cursor need to add in one cell(Column values).


Cheers!
Prathap.
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need a custom cell renderer and editor for this, but with that it's possible. See How To Use Tables for more information.
 
prathap venkata naga yelugula
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks,
Here I need a checkBox and 2 buttons with in a Cell for a complete table Column and I need a String and 2 buttons with in a Cell for another
complete table Column .I am not able to Predict that thing.

Cheers!
Prathap.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prathap, please UseAMeaningfulSubjectLine
Did you check out the link Rob provided? Did you notice the section called Editors and Renderers?
 
prathap venkata naga yelugula
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ooh Sorry Maneesh,
I have Checked that link, with that I didn't qualify in my requirement.
I am trying in another ways also.If I didn't found any solution I will post again.

Cheers!
Prathap.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!