File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Setting JCanvas background to an image?
Joined: Nov 07, 2001
Jan 29, 2002 20:45:00
Does anyone know how to set the BackGround of a JCanvas to an image. lets say a gif image?
yours respectfully<br />Avin Sinanan
Joined: Oct 18, 2000
Jan 30, 2002 06:51:00
I could probably tell you if I knew what a JCanvas was... I don't seem to find it in the standard Java APIs for the 1.3 or 1.4 JDKs.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
It is sorta covered in the
JavaRanch Style Guide
subject: Setting JCanvas background to an image?
JPanel background image
DISPLAY an IMAGE
Stretch the image size.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014