JPanel with background image
Hello, i want to make a JPanel with a background image, but i can´t do it.
I´m using eclipse for ide, and i don´t know how to import images to eclipse and then show in a program in a JPanel or a ImageIcon.
Can anyone helpme to import the images to eclipse and a litle source code for display it.
Thanks
Re: JPanel with background image
To import images into Eclipse, you can simply drag and drop the image into a folder in the Package Explorer. I usually create an images folder and place my images there.
As to code to display, I don't think we need to recreate this for you as there are many many examples of this on the web. Please give it a try and then come on back with your code if you get stuck.
Re: JPanel with background image
Fubarabl:
Thanks you very much, I finally can do it... I create a folder within the proyect..
My mistake was that the floder i created within the SRC package.
Now I can link the images to ths folder.
Regards
Re: JPanel with background image
Great, glad you've got it working! And welcome to the Java-Forms.org!