commandsPanel.setBorder(commandsBorder);
// expand all action
JButton actionButton = new JButton("Expand all");
ActionListener actionListener = new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
tree.expandAll();
}
};
actionButton.addActionListener(actionListener);
commandsPanel.add(actionButton);
// clear all action