title: Displaying an image on a JtextArea within a JPanel
body: <p>not sure why this won't work i am using netbeans to create it i have similar code in jcreator an it works. any help greatly appreciated</p>
  
  <pre><code>    public void BoardGUI(){
           panel = new JPanel();
           setIconImage(new ImageIcon("images/die.bmp").getImage());
  
           Container cPane;
           cPane = getContentPane();
           cPane.setBackground(Color.red);
  
           setTitle("ITT Game Of Life");
           setDefaultCloseOperation(EXIT_ON_CLOSE);
  
           panel.setOpaque(false);                         //the frame
           setSize(800,650);
           setLocation(500,100);
           boardArea = new JTextArea(50,100)  {
  
           ImageIcon image = new ImageIcon( "/images/Board.jpg" );
  
       @Override
       public void paint( Graphics g ) {
          g.drawImage( image.getImage(), 0, 0, this);
          super.paint(g);
       }
     };
  
     boardArea.setOpaque(false);
     boardArea.setEditable(true);
     boardArea.setBounds(100,50,200,200);
     cPane.add(boardArea);
  </code></pre>