Sorting double values in JTable
问题 I have found quite a few questions related to this but I haven't found a simple solution to my issue though. I can't find a way to make my JTable sort Double values properly. I extended AbstractTableModel to receive a Class array and return the proper types per column: class TableModelMod extends AbstractTableModel{ private ArrayList data; private String [] headers; private Class [] types; TableModelMod(String [] heads, ArrayList datas, Class [] classes){ headers = heads; data = datas; types