classes list tree search fix

This commit is contained in:
honfika@gmail.com
2015-03-19 23:33:18 +01:00
parent 2ada8667bb
commit 4f1f9d45c2
4 changed files with 16 additions and 9 deletions

View File

@@ -71,7 +71,6 @@ import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.FontUIResource;
import javax.swing.plaf.TreeUI;
import javax.swing.plaf.basic.BasicColorChooserUI;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableColumnModel;
@@ -541,10 +540,7 @@ public class View {
}
public static void expandTreeNodes(JTree tree, TreePath parent, boolean expand) {
TreeUI ui = tree.getUI();
tree.setUI(null);
expandTreeNodesRecursive(tree, parent, expand);
tree.setUI(ui);
}
private static void expandTreeNodesRecursive(JTree tree, TreePath parent, boolean expand) {