• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

images in random fashion

 
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??
 
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...
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic