4950515253545556575859
p.addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent e) { p.setLayout(new ForceDirectedLayoutAlgorithm(p)); } } ); p.setGraph(g);