void (TreeUI ui) { super.setUI(ui); getActionMap().put("selectAll", new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { if (myDesigner != null) { ((SelectAllAction)myDesigner.getActionPanel().createSelectAllAction(myDesigner.getSurfaceArea())).perform(); } } }); }