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
image as background to jpanel
Joined: Feb 14, 2006
Oct 10, 2006 14:56:00
hey guys quick question. say i have an
fish.jpg and JPanel panel = new JPanel();
how do i set the background of the JPanel to fish.jpg?
is there a quick and easy way?
("Anger is not an emotion, its a symptom of fear.")
Joined: Aug 31, 2006
Oct 10, 2006 15:07:00
This is asked often enough is part of the FAQ.
I agree. Here's the link:
subject: image as background to jpanel
JPanel background image
add background image in JPANEL
how to make an image my jpanel background
Image as a background
Adding a picture
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014