title: Is it possible to outline the text in a JButton?
body: <p>The question is in the title.</p>
  <p>Here's my code :</p>
  <pre><code>JButton button = new JButton(&quot;JOUER&quot;, new ImageIcon(getClass().getResource(&quot;template.png&quot;)));
  button.setBounds(0, 0, 215, 84);
  button.setBackground(new Color(0,0,0,0));
  button.setFont(new Font(&quot;Bebas Neue Bold&quot;, Font.TRUETYPE_FONT, 50));
  button.setForeground(Color.WHITE);
  button.setVerticalTextPosition(SwingConstants.CENTER);
  button.setHorizontalTextPosition(SwingConstants.CENTER);
  </code></pre>
  <p>Here's the result :</p>
  <p><img src="https://zupimages.net/up/20/48/s73b.png" alt="The result" /></p>
  <p>And I just want to know if is it possible to outline my text.</p>
  <p>Here's the result I want to have:</p>
  <p><img src="https://zupimages.net/up/20/48/7ods.png" alt="The button I want to have" /></p>