Results 1 to 3 of 3
  1. #1
    dofod is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Exclamation 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!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: How To Display An Array Of Images?

    Box or a JPanel with BoxLayout or GridLayout or GridBagLayout
    JScrollPane

    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.

    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
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    dofod is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: How To Display An Array Of Images?

    Ok...New Thread Started In Swing Section...

Similar Threads

  1. How to display Images?
    By Rectal Exambot in forum New To Java
    Replies: 12
    Last Post: 10-11-2010, 04:36 AM
  2. JavaHelp how to display images
    By fossildoc in forum New To Java
    Replies: 0
    Last Post: 04-04-2010, 06:42 AM
  3. How to display Images from MS access using JSP
    By redmaverick in forum JDBC
    Replies: 3
    Last Post: 11-30-2009, 09:28 AM
  4. display images
    By prof.deedee in forum AWT / Swing
    Replies: 10
    Last Post: 11-12-2009, 09:08 PM
  5. Dynamic display of images
    By gixerino in forum NetBeans
    Replies: 7
    Last Post: 01-15-2009, 02:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •