title: Graphics rendering in title bar
body: <p>The graphics keep rendering in the title bar.
  I use a buffered Image encapsulated in a jlabel and use the resultant graphic objects to draw rectangles in my code. This is the important part of the jframe class constructor:</p>
  
  <pre><code>super();
          BufferedImage image=new BufferedImage(680,581,BufferedImage.TYPE_INT_ARGB);
          m_graphicsObject =image.getGraphics();
  
          JLabel label=new JLabel(new ImageIcon(image));
  
          // buttons, mouse events and other controls use listeners to handle actions
          // these listener are classes
          btn1 = new JButton("Go!");
          //btn1.setPreferredSize(new Dimension(100, 30));
          btn1.addActionListener(new button_go_Click()); //listener 1
  
          btn2 = new JButton("Clear!");
          //btn2.setPreferredSize(new Dimension(100, 30));
          btn2.addActionListener(new button_clear_Click()); //listener 2
  
          //always add created buttons/controls to form
          JPanel panel=new JPanel(new GridLayout(20,2));
          panel.add(btn1);
          panel.add(btn2);
  
          Container pane = this.getContentPane();
  
          pane.add(label);
          pane.add(panel, BorderLayout.EAST);
          this.setSize(680,581);
          this.setVisible(true);
  </code></pre>