bDir.addActionListener(this);
comboSort = new JComboBox();
for (Class<?> strategyClass : sortStrategies) {
try {
DataSetSortStrategy dsss = (DataSetSortStrategy) strategyClass.newInstance();
comboSort.addItem(new Sorter(dsss));
if(dsss.supportsReversing()) {
comboSort.addItem(new Sorter(dsss, false));
}
} catch (Exception e) {
logger.warn("Couldn't instantiate sort strategy {}", strategyClass.getName());
}