Results 1 to 4 of 4
Thread: JPanel with background image
- 09-22-2011, 06:36 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 5
- Rep Power
- 0
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.
- 09-22-2011, 07:17 PM #3
Member
- Join Date
- Sep 2011
- Posts
- 5
- Rep Power
- 0
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!
Similar Threads
-
jpanel background -java
By felito in forum New To JavaReplies: 7Last Post: 02-14-2011, 07:29 PM -
Can JDesktopPane can have a background JPanel?
By chyrl in forum AWT / SwingReplies: 13Last Post: 10-22-2010, 06:56 AM -
Change JPanel background after its been set once
By mevets in forum AWT / SwingReplies: 4Last Post: 04-14-2010, 01:07 AM -
background color with jpanel
By hannerz06 in forum New To JavaReplies: 6Last Post: 03-31-2010, 03:25 AM -
how to put a background image in a JPanel
By yanipao in forum New To JavaReplies: 5Last Post: 10-21-2009, 02:27 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks