How do I establish a background from a file in an applet? I made this feeble attempt, but it doesn't work... image = getImage(getCodeBase(), "u17bkgrd.jpg"); setBackground(image); Thanks
If only it was that easy! setBackground() only takes an RGB color, so to do an Image you need to paint it on, then paint over that to give the impression of a background. You can modify the "bleed" or alpha value of an Image to render a half-tone impression. But to get really fancy, Swing widgets or even using the Java 2D is the way to go; steeper learning curve, but you then get cool effects. ------------------ Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
Make visible what, without you, might perhaps never have been seen. - Robert Bresson