...

java load image

sweenster
12-09-2004, 03:55 PM
I'm trying to learn Java at the moment and am struggling big time!
Anyways, for the application i'm writing I need to load a background image from a jpg file.

I've tried a few options but nothing seems to work. any suggestions?

turbowrx
12-09-2004, 05:59 PM
Okay, first you need to know what kind of component you want to load it on. Frame, panel, or whatever. Then, you can check out the api's of those components for the methods to load images. I would imagine you can use painting as well, but I know some components have methods for loading images already. Hope this helps. If you are confused, just ask more questions. Later.

nanite51
12-07-2007, 12:59 PM
I'm actually trying to do the same thing that sweenster is trying to do. I never really learned about anything related to images in java. I tried doing what turbowrx suggests to do, but I keep running into a wall.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum