• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jbutton within Jtable

 
Aravind Elango
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to have a Jbutton as one of my fields in my Jtable. Am extending the AbstractTableModel class.
In the field where I ecpected to see the Button, I instead see a text message "java.swing.Jbutton.....".
Could someone give me an idea of how to overcome this ?

- A new bee to swing
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aravind,
Have you seen the JButton Cell example on Tamemusa's Web page? Perhaps it will be helpful?
Good Luck,
Avi.
 
Skip Cole
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web site referenced above, which is also referenced on another thread, is not up. I don't know if its gone forever, or just down temporarily.

So, anyone know how to put a JButton in a table cell?

Thanks,
Skip
 
Pavan Panduga
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found this link in google,

http://www.devx.com/getHelpOn/10MinuteSolution/20425

Hope it helps,
 
Skip Cole
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It did.

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!