void (Map<String, String> options) { clear(); if (!options.isEmpty()) { for (Map.Entry<String, String> entry : options.entrySet()) { myRows.add(new KeyValuePair(entry.getKey(), entry.getValue())); } myRows.sort((o1, o2) -> o1.key.compareToIgnoreCase(o2.key)); fireTableRowsInserted(0, options.size()-1); } }