File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

View Multiple images in a single window

 
Souvik Das
Greenhorn
Posts: 15
  • 0
  • 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
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't that exactly what Maneesh said?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic