title: I can't add JButtons to a JList in a specific order
body: <p>I try to add JButtons in the JList to be like a board game.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>public class Board {
  
  public Board() {
      JList list = new JList();
      list.setLayout(new GridLayout(10, 10));
      list.setDragEnabled(true);
  
      Container container = new Container();
      JFrame frame = new JFrame();
      JPanel panel1 = new JPanel();
      JPanel panel2 = new JPanel();
      frame.add(container);
      container.add(panel1);
  
      for (int j = 0; j &lt; 99; j++) {
          list.add(createButton());
      }
  
      panel2.add(list);
      container.add(panel2);
      panel2.setLayout(new GridLayout());
      panel1.setBounds(50, 150, 150, 150);
      panel1.setBackground(Color.YELLOW);
      panel2.setBounds(650, 150, 500, 500);
      panel2.setBackground(Color.RED);
  
      frame.setSize(1366, 768);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setVisible(true);
  }
  
  public JButton createButton() {
      JButton button = new JButton();
      button.setBackground(Color.BLUE);
      return button;
  }
  }
  </code></pre>
  
  <p>If I put 100 repetitions I get this: <img src="https://i.stack.imgur.com/r58P4.png" alt="enter image description here"></p>
  
  <p>If I put 99 repetitions i get this:</p>
  
  <p><img src="https://i.stack.imgur.com/wM1sz.png" alt="enter image description here"></p>
  
  <p><strong>So my question is how can I fill the above board?</strong></p>