Is definitely there any way to create non editable mobile dynamically in jtable ? Whenever user gives input like false, i desire to create non editable mobile.I have observed in DefaultTableModel isCellEditable method.But if i desire to make use of that i have got create each period new object.So i would like to alter it non editabIe dynamically. Can yóu anyone please assist me?.thanks a lot
Merry CDA Audio Music to ID3 Editing is a sound editor for Windows that lets you make and edit voice and other audio recordings. You can cut, copy, and paste parts of recordings and, if required, add effects such as echo, amplification, and noise reduction. Merry CDA Audio Music to ID3 Editing supports all major audio.
shréeshree1,27255 platinum badges18
18 metallic badges3030 bronze badges2 Answers
some other course
You can then fixed the beliefs dynamically by using the myModel variable you have got kept and phoning the setCellEditable functionality on it. in concept. I have not tested this program code but it should work. You may nevertheless have got to flames some sort of occasion to activate the desk to discover the modifications.
dféuer34.6k33 yellow metal badges5252 silver badges136136 bronze badges
calderonmluiscalderonmluis
I experienced similar difficulties to number out how to enable/disable editing of a cell dynamically (in my situation based on occurences in a database.) I do it Iike this:
Thát of course overrides isCellEditable. The just method I could create that function by the method, had been to add the declaration to the instantiatión of the tabeI itself and not the table design.
Then I announced editable as a personal boolean that can be set at the.h.:
And it functions quite properly.
ónxonx