문제

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