A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Developer Certification (SCJD/OCMJD)
JButton in JTable
Joined: Oct 13, 2004
Dec 21, 2004 08:05:00
Does any of you know how I can put a clickable JButton in a JTable ? I succeed in adding the JButton as a CellRenderer in my JTable, but it doesn't seem to react to ActionEvents...
Sven Mari�n<br />SCJP, SCBCD, SCJD (in progress)
Joined: Feb 05, 2001
Dec 21, 2004 10:47:00
I think it is a good idea to try and figure out how to add a JButton to a Jtable as a way for you to learn. However, it isn't really necessary for you to do this for the assignment. So if you get frustrated and can't figure it out, don't feel bad.
Where do you add the ActionListener code?
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
subject: JButton in JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014