title: How to assign dynamically names to a collection of JButton?
body: <p>I have to create a collection of JButtons depending of a size of a certain collection. How to create the List of JButtons :button1, button2, button3...dynamically to have something like</p>
  
  <pre><code>for (int i=0;i&lt;collection.size();i++){
     JButton button+i = new Button();
   }
  </code></pre>
  
  <p>Thanks</p>