tag editor: cancel editing fix

This commit is contained in:
Honfika
2014-02-24 17:06:50 +01:00
parent 58fdb01650
commit 7980ad0a0e
18 changed files with 178 additions and 179 deletions
@@ -356,15 +356,13 @@ public class View {
public static SubstanceColorScheme getColorScheme() {
return SubstanceColorSchemeUtilities.getActiveColorScheme(new JButton(), ComponentState.ENABLED);
}
public static void refreshTree(JTree tree,TreeModel model) {
public static void refreshTree(JTree tree, TreeModel model) {
List<List<String>> expandedNodes = getExpandedNodes(tree);
tree.setModel(model);
expandTreeNodes(tree, expandedNodes);
}
private static List<List<String>> getExpandedNodes(JTree tree) {
List<List<String>> expandedNodes = new ArrayList<>();
int rowCount = tree.getRowCount();