• Post Reply Bookmark Topic Watch Topic
  • New Topic

DISPLAYING several image

 
Zaafir Barahim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Russell Peters
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the point of posting the same question thrice over here and here too


Posting it once will be enough for getting help !
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Zaafir Barahim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!