0

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?
vijay
  • 1,129
  • 7
  • 22
  • 34
  • 1
    *"I have two questions"* Those are requirements or specifications, not questions. If your question is "How do I fulfill the requirements?" I would vote to close as 'too broad'. With that in mind, what is your (one) question? – Andrew Thompson Feb 21 '13 at 11:56
  • @AndrewThompson is correct; if your question is _How can I learn more about these topics?_ I've outlined an approach below. – trashgod Feb 21 '13 at 12:24

1 Answers1

5

You'll need to proceed in several steps:

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045