Overlapping two gif/jpg images in an applet
1 posts in topic
Flat View  Flat View

Posted By:   shashi_tiwari
Posted On:   Wednesday, January 2, 2002 03:58 AM

How can i draw two gif or jpg images on same location in an applet ,providing the first image should be transparent. i.e. its
drawing sholuld be displayed when secon image is drawn on first image.

Re: Overlapping two gif/jpg images in an applet

Posted By:   Jon_Benton  
Posted On:   Sunday, January 6, 2002 11:29 AM


Presuming you are using SWING, you might consider subclassing JPanel and overriding the paintComponent method. In that method, you may do as you like, including using Graphics.drawImage(...) to draw as many gif, jpg, or png images as you like, wherever you like.



About | Sitemap | Contact