topPanel.add(circularButton, FlowLayout.LEFT);
JButton treeButton = new JButton("Tree Layout");
treeButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
fd = new TreeLayout(gp);
if (fd instanceof RootNodeLayout) {
RootNodeLayout temp = (RootNodeLayout) fd;
temp.setRootNodes(currentSelection);
}
gp.getNanoGraph().setLayout(fd);