title: How to change the layout clicking button in jung
body: <p>I am using an SpringLayout2 for my graphical visualization. I have added Jbutton in order to change the layout by clicking this button.How can do this? can i do with LayoutTransition?. Ive tried the following code. </p>
  
  <pre><code>    JButton layout1 = new JButton("Layout");
      layout1.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
              LayoutTransition&lt;String, Edge&gt; lt = new LayoutTransition&lt;String, Edge&gt;(
                      vv, layout, radialLayout);
              Animator animator = new Animator(lt);
              animator.start();
              vv.setGraphLayout(new StaticLayout(layout.getGraph(), layout));
              vv.repaint();
  
          }
  
      });
  </code></pre>
  
  <p>But I am getting error as <strong>"Show Console view encountered a problem"</strong>. Can anyone help me with this</p>