title: How to set a JButton to be undecorated and remove the MouseListener
body: <p>I made a JButton and I am trying to remove the mouse events that is the "borders and colors" that comes with it by default. I tried the following:</p>
  
  <pre><code> setUndecorated(true);
  </code></pre>
  
  <p>But it wasn't the right code to do that.</p>
  
  <p>Is there a way to remove the MouseListener that the JButton brings and set the JButton to how you want it to be decorated?</p>