質問

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

役に立ちましたか?

解決

  • 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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top