Question

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

Était-ce utile?

La solution

  • 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top