i want to get sum of jtable column n that value display in a jtextfield. so what is the code for that?

Recommended Answers

All 2 Replies

  1. put number to JTable column, better to play with model only

  2. override getColumnClass for correct datatype (String, Double, Date, Icon...)

  3. loop in concrete column by call getValueAt, result from this loop to add JTextField

I can't figured it out how to do it. So if you can say me the codes for that. because im new to this field.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.