java - default table model editable -
i have 2 questions jtable , default table model
jtable table = new jtable(); tablemodel model = new defaulttablemodel(colnames,rowcount); table.setmodel(model);
i had combobox added column 4 , column 4 should editable , rest should not editable. how create column 4 editable? the rows table coming ms access table, if combobox changed, update in ms access table too. how update info in ms access table?
you'll need proceed in several steps:
start how utilize tables.
this example illustrates using combo box editor.
this example shows how override setvalueat()
, can update database using jdbc.
once understand these concepts, consider dbutils
.
java swing jtable
No comments:
Post a Comment