title: Making a JButton invisible, but clickable?
body: <p>How do I make a JButton in java, invisible, but clickable?</p>
  
  <pre><code>button.setVisible(false); 
  </code></pre>
  
  <p>makes the button invisible, but unclickable, is there any method that makes it invisible, but clickable?</p>
  
  <p>I tried doing:</p>
  
  <pre><code>button.setVisible(false);
  button.setEnabled(true);
  </code></pre>
  
  <p>but that didn't work either.
  I want to do this because I want to have a button with an image, if I put the invisible JButton over the image, the button will respond when you click the image, or invisible button.</p>