title: How can i add button to new line without layout?
body: <p>This is my first gui project so if it's a dumb question please forgive me. 
  I should add 25 buttons to panel in 5 rows with 5 buttons each row. It must be like 5X5 matrix. But I can't use layout in this project. So I have to do this without layout.</p>
  
  <p>Here is my code for adding the buttons:</p>
  
  <pre><code>for(int i=0;i&lt;25;i++)
          {   
          b=new JButton();
          b.setLocation(0, 0);
          b.setPreferredSize(new Dimension(40, 40));
          b.setEnabled(true);
          panel.add(b);
          }
  </code></pre>