![]() |
How to implement an undeditable JTable without overriding class DefaultTableModel
I don't want to use the below code because my jTable is already defined. I dragged it from the Swing Palette, so I can't override the method. I'm still using the eloquent NetBeans "Design" View. This view gives me the ease ofjust dragging new controls to the form.
public class MyTableModel extends DefaultTableModel { public boolean isCellEditable(int row, int column) { if (col != 30) { return false; } else { return true; } } } Thank you, |
| All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.