Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

images in random fashion

 
praseena nair
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey...i am trying to develop a game...in which i need various parts of images displayed in random way in a grid and on 15 different buttons...i.e. buttons will be displayed in grid layout and each will hold 1 part of image.and these should be in random manner....this is kinda jigsaw puzzle...can anyone help me how can i add images to an arraylist??
 
Gavin Tranter
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldnt put images into an array list for this.
You are better off storing the url/uri of the image in the arraylist, and passing that to the button, so that the button loads the image using the url.

G
 
praseena nair
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey thanks a lot...i didnt use your way but could still figure out a way to develop the game thanks a lot anyways...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic