title: Invisible JButton in JPanel
body: <p>Here's my <code>JPanel</code>. The first button is always visible, but the secound is visible only when you place a cursour on it. Where the problem can be?</p>
  
  <p>P.S. Please use simple english, if u can, because I don't speak english well</p>
  
  <pre><code>public class GamePanel extends JPanel implements KeyListener{
  
  
  GamePanel(){
      setLayout(null);
  }
  
  public void paint(Graphics g){
  
      JButton buttonShip1 = new JButton();
      buttonShip1.setLocation(10, 45);
      buttonShip1.setSize(40, 40);
      buttonShip1.setVisible(true);
      add(buttonShip1);
  
      JButton buttonShip2 = new JButton();
      buttonShip2.setLocation(110, 145);
      buttonShip2.setSize(440, 440);
      buttonShip2.setVisible(true);
      add(buttonShip2);
      }
  }
  </code></pre>