Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating multiple images using a loop.

 
John Wayne
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How? I've tried many times, this is what I have so far:
But, I want to display the images within a certain amount of pixels so they don't overlap, help?
 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Java Ranch,

You could use a GridBagLayout and a GridBagConstraints object instead of using a null layout manager.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic