title: JInternalFrame Image display;
body: <p>I tried adding an image to JInternalFrame. my paint() looks like this:</p>
  
  <pre><code>    public void paint (Graphics g) {
          //this should draw the loaded image
          if (bufferedImage != null) {
              g.drawImage(bufferedImage, getSize().width/2 - bufferedImage.getWidth()/2,
              getInsets().top+20, this);
          }
      }   
  </code></pre>
  
  <p>The image does load and display, but the window title bar (the one that should have the name, min, max and close) disappears. The min/max/close buttons reappear when I move the mouse to where they should be, and when I move the mouse over the title bar I can drag
  the whole window.</p>
  
  <p>Should I be using something else instead of the paint() method?</p>
  
  <p>thanks</p>