Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18677 > unrolled thread
| Started by | clusardi2k@aol.com |
|---|---|
| First post | 2012-09-12 09:25 -0700 |
| Last post | 2012-09-12 09:25 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
How to implement an undeditable JTable without overriding class DefaultTableModel clusardi2k@aol.com - 2012-09-12 09:25 -0700
| From | clusardi2k@aol.com |
|---|---|
| Date | 2012-09-12 09:25 -0700 |
| Subject | How to implement an undeditable JTable without overriding class DefaultTableModel |
| Message-ID | <88594c24-84b3-4823-bbc6-0afe759f4165@googlegroups.com> |
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 of just 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,
Back to top | Article view | comp.lang.java.programmer
csiph-web