So you have times stored in milliseconds in a JTable? Then use the getValueAt(row, column) method of JTable to get the values from the cells that are next to each other. If you look at the JTable documentation for the getValueAt method, you'll notice that the return type is Object. So if you have Integers stored in each cell, then when you call getValueAt, cast the Objects it returns to Integers, then subtract them. JTable Documentation
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354