i want to display a big image and on that image i want to display smaller image or image icon on that and i want to position all the small image which i will put on the big image. please help me out. THANKS in advance
JavaRanch's Swing FAQ has an example of a background image on a JPanel, which would be your large image.
as it is a JPanel, you can add JLabels with ImageIcons - these would be your small images.
if you still can't get it to work, post what you've tried
Joined: Dec 12, 2006
thanks infinitely for your reply, iv been able to do what you told me before and it worked. but there was some problem with the display. this was because i have put the image on the frame itself and i have read the image directly from a file. could i have some example of how to put the big image in the backgroung and the others on panels. please help me out, im a beginner in this. thanks in advance
Joined: Jun 09, 2003
I was going to answer with an example, then spotted your other post on this same subject.
next time you have a problem, keep it together in the single thread