vijay
vijay

Reputation: 1139

default table model editable

I have two questions about jtable and default table model

JTable  table = new JTable();
TableModel model = new DefaultTableModel(colNames,rowcount);
table.setModel(model);
  1. I had comboBox added to column 4 and only column 4 should be editable and rest should be not be editable. How to make only column 4 editable?
  2. the rows for the table are coming from ms access table, so if the comboBox is changed, I would like to update it in the ms access table too. How to update the data in ms access table?

Upvotes: 0

Views: 683

Answers (1)

trashgod
trashgod

Reputation: 205785

You'll need to proceed in several steps:

Upvotes: 5

Related Questions