How To Display An Array Of Images?
Hey Everyone...
I Am Developing A Java Application For Downloading Youtube Videos...
I need help with displaying multiple images, one after another(like an array) and since the array of images contains more than 10 or 20 images
a scrollbar would be nice...
This i want to do as a separate function, however the parameter can be the main JFrame from the main function...
So far i have tried out the ImageIcon method by setting up new panel....but it doesnt show any of the images...just the new panel...
Your help will be very much appreciated...!
Thanks!
Re: How To Display An Array Of Images?
Box or a JPanel with BoxLayout or GridLayout or GridBagLayout
JScrollPane
Quote:
however the parameter can be the main JFrame from the main function.
Dosn't make any sense at all. Also, Java doesn't have functions, Java has methods.
Quote:
So far i have tried out the ImageIcon method by setting up new panel
Doesn't make sense either. Better go through the Tutorial Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
When you have a specific question that you can't resolve from the tutorial, start a new thread in the AWT/Swing section. Unless of course you choose not to use Swing.
db
Re: How To Display An Array Of Images?
Ok...New Thread Started In Swing Section...