title: display a table of ArrayList
body: <p>I have a <code>main.java</code> that has a button, when you press it, it calls a method and retuns an ArrayList of Nodes;
  I want to display the ArrayList in a table ( 5 fields as described in class Node)
  How to do that, The problem is to display some fields as they are List type?</p>
  
  <pre><code>Node.java
  
  public class Node {
      private String name;
      private double value;
      private List&lt;Node&gt; first;
      private List&lt;Node&gt; second;
      private List&lt;Double&gt; values;
  
          //some methods... 
  }
  </code></pre>
  
  <p>main.java</p>
  
  <pre><code>import java.awt.Button;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  import java.util.ArrayList;
  public class Main {
      public static void main(String[] args) {
               JFrame frame = new JFrame("Red Bayesiana Visita a Asia ");
               JPanel panel = new JPanel();
               boton = new Button( "Get");
               panel.add(boton);
               frame.add(panel);
  
               ArrayList&lt;Node&gt;  arrayList;
  
               boton.addActionListener(new ActionListener() {
                      public void actionPerformed(ActionEvent e) {
                           arrayList = method("file.txt");
                           //insert into table arrayList of 5 fields? 
                      }
              });
  
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           frame.setSize(400, 400);
           frame.setVisible(true);
      }
  }
  </code></pre>