JPanel () { JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(createToolbarPanel(), BorderLayout.NORTH); panel.add(myActionsTree.getComponent(), BorderLayout.CENTER); myTreeExpansionMonitor = TreeExpansionMonitor.install(myActionsTree.getTree()); new DoubleClickListener() { @Override protected boolean onDoubleClick(@NotNull MouseEvent e) { editSelection(e, true); return true; } }.installOn(myActionsTree.getTree()); myActionsTree.getTree().addMouseListener(new MouseAdapter() { @Override public void mousePressed(@NotNull MouseEvent e) { if (e.isPopupTrigger()) { editSelection(e, false); e.consume(); } } @Override public void mouseReleased(@NotNull MouseEvent e) { if (e.isPopupTrigger()) { editSelection(e, false); e.consume(); } } }); if (TouchbarSupport.isAvailable()) { myShowFN = new ShowFNKeysSettingWrapper(); if (myShowFN.getCheckbox() != null) { panel.add(myShowFN.getCheckbox(), BorderLayout.SOUTH); } } return panel; }