Hi, my name is jason and i just started to use this forum. I was wondering if someone can help me out in adding a background picture to my program. I have a picture that i have saved on my computer called "tablePicture.gif" and was wondering how i add this picture to my code so it is visable when i run the program.
so far i have done this:
I made sure that "java.awt.*" was imported at the top of the program.
then I made a "private Image tablePicture"
i think that is right so far, but now im stuck.
PS: im assuming that i need a .getImage or something, but im not sure. If anyone would be so kind to help me out it would be greatly appriciated.
Thank you,
Jason
Inserting a picture into my java program
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Hi sh00ter555 and welcome to the forums! These are TextPad forums but you sure are free to try your luck in the Java forum with your problem. Keep in mind that the users here are somewhat focused on TextPad and not Java. Some here are quite good at it but don't bet on them seeing your Q at once. HTH
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
-
- Posts: 3
- Joined: Sat May 15, 2004 12:55 am