Hi all,
   I want to show a picture in a panel as the background , I constructed my
own Panel like this:

class MyPanel extends JPanel{
  Toolkit toolkit = Toolkit.getDefaultToolkit();
  Image image = toolkit.getImage("C:\\Demo.gif");

  public void paint( Graphics g){
     super.paint(g);
     g.drawImage(image,0,0,this);
  }
}

  It works, but when I add buttons or labels on that panel, thoes components
are hidden behind
the picture unless the cursor move over the component.

  How to force the components on the top of the picture?

Thanks in advance!

Gu Min
[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to