• Post Reply Bookmark Topic Watch Topic
  • New Topic

View Multiple images in a single window  RSS feed

 
Souvik Das
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Does anybody know how to open multiple images in a single window ? I want a scrollbar with this to view multiple images.It would be helpful if anybody share a code regarding this.
Thanks in advance.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Souvik Das:
Hi,
Does anybody know how to open multiple images in a single window ? I want a scrollbar with this to view multiple images.It would be helpful if anybody share a code regarding this.
Thanks in advance.


Wrap the images inside JLabel. Add these labels to the panel with your favorite layout. Add the panel to the base container after wrapping it inside a JScrollPane.
 
G Estes
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or create a JScrollPane, set it as horizontal or vertical and add one label for each image you are displaying. The image will be on each label.
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't that exactly what Maneesh said?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!