title: Swing Button Look and Feel Based On Size?
body: <p>I have made a JButton:</p>
  
  <pre><code>JButton button = new JButton("Button");
  </code></pre>
  
  <p>Then added it to a JPanel:</p>
  
  <pre><code>panel.add(button, BorderLayout.CENTER);
  </code></pre>
  
  <p>Photo of the Button:</p>
  
  <p><img src="https://i.stack.imgur.com/v2F0V.png" alt="JButton"></p>
  
  <p>I have noticed 2 different types of JButtons:</p>
  
  <p><img src="https://i.stack.imgur.com/hdqFY.png" alt="thin"> <img src="https://i.stack.imgur.com/v2F0V.png" alt="thick"></p>
  
  <p>I like the button titled "OK", is there any way I can set this as the preferred style of the button? Or if this can not be done, is there a way to make a panel with a fixed height, and add it to the center of another panel?</p>
  
  <p>Thanks.</p>