Pregunta

As I am a beginer in Java Programming Language, I am making an ERP, I am working with jTable, I have three columns (item quantity, rate, amount) in the manner that i am writing item quantity in a column and then on typing its rate i want change the value of amount column. I need your help. Thanks

¿Fue útil?

Solución

  • see my question about Why never change the notifier in receiving a change event

  • override setValueAt() for columns quantity and rate instead of using TableModelListener,

  • updates fired from TableModelListener could be / may be fragile, breakable, then with bunch of exceptions caused stops of updates in JTable cells

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top