title: How to add numbers from JTextField at arraylist?
body: <p>It my first work with <code>swing</code>, help please. </p>
  
  <pre><code>//In this texfield should be an array of digits like this: 10, 5, 8, 1, 11
  private JTextField  setATextField = new JTextField(10);
  private JButton button = new JButton("Button");
  //....
  //....
  public class UnionActionListener implements ActionListener {
      @Override
      public void actionPerformed(ActionEvent event) {
          ArrayList&lt;Integer&gt; setA = new ArrayList&lt;&gt;();
      }
  }
  </code></pre>
  
  <p>How to add this digits in <code>arraylist</code>?
  it must be like this:</p>
  
  <pre><code>JTextField field = new JTextField("10, 5, 8, 1, 11", 10);
  setA.get(0) = 10;
  setA.get(1) = 5;
  setA.get(2) = 8;
  //......
  </code></pre>