Unidata / IDV

The Integrated Data Viewer (IDV) from Unidata is a framework for analyzing and displaying geoscience data.
http://www.unidata.ucar.edu/software/idv/
Other
80 stars 37 forks source link

Fix JTable row selection problem. #115

Closed jon4than closed 7 years ago

jon4than commented 7 years ago

This is a follow-up to #114...

It turns out that the underlying table model won't be updated when a JTable's column has been sorted. Luckily, there's the handy convertRowIndexToModel method for these sorts of things.

Here's how to reproduce the problem, courtesy of Bob:

  1. Open the Parameter Defaults Editor.
  2. Go to the System Defaults tab.
  3. Scroll down until you find the 'temp' Parameter, right-click on 'temp' and choose 'Copy Row to User's Defaults' (or double-click on 'temp'... does the same thing).

At this point, you should see the bug. In McV, selecting 'temp' results in 'z_frzlvl' being brought over.

yuanho commented 7 years ago

I tested and merged this request.