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

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top