title: stretched button in the gridLayout
body: <p>everyone, I have some problem with Java I created panel with five rows and one column, also I added button to the one of the rows, finally I added this panel to the frame, and I received button which is stretched to full frame, can I reduce the size of the button, I used</p>
  
  <pre><code>myButton.setSize(10,10);
  </code></pre>
  
  <p>but it doesn't seem to work, also I use</p>
  
  <pre><code>frame.pack();
  </code></pre>
  
  <p>may it be the problem, thanks in advance</p>