Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Displaying A Bunch Of Images At Runtime (Left To Right)

  1. #1
    Junior Member
    Join Date
    Jun 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Displaying A Bunch Of Images At Runtime (Left To Right)

    Hello,

    I have a rather strange application that has a bunch of images (500+) png images under 1kb each. The data will come in as the file name 0001.png, 0002.png, 0003.png etc. The actual files will stored inside the application. The string coming in will be unknown in advance so they need to be drawn at runtime.

    What control should I use to draw the images from left to right top to bottom. The widths change but the height remains the same for all the images.

    What is the best control to use for this?

    Thanks in advance!

  2. #2
    Junior Member
    Join Date
    Jun 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Displaying A Bunch Of Images At Runtime (Left To Right)

    LinearLayout (verticle) doesnt really work because it is one image per line. The line width will be variable and I basically need it to wrap to the next line if the width is greater then the available screen. Is there an easy way to do this?

Similar Threads

  1. [SOLVED] I'm trying to get the most frequent character out of a bunch
    By SOG in forum What's Wrong With My Code?
    Replies: 12
    Last Post: May 3rd, 2013, 09:30 PM
  2. Replies: 1
    Last Post: November 19th, 2012, 10:25 AM
  3. Displaying multiple images using servlet or JSP into html table
    By rajeshraj in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: November 1st, 2012, 12:21 PM
  4. [SOLVED] How do I save a bunch of images in a JPanel as one?
    By Yoyo_Guru in forum AWT / Java Swing
    Replies: 4
    Last Post: June 14th, 2012, 09:34 AM
  5. Hello ya bunch of programmers...
    By kaylors in forum Member Introductions
    Replies: 7
    Last Post: October 7th, 2009, 03:06 AM