aspose file tools
The moose likes Game Development and the fly likes images in random fashion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "images in random fashion" Watch "images in random fashion" New topic

images in random fashion

praseena nair

Joined: Mar 28, 2009
Posts: 4
hey...i am trying to develop a 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

Joined: Jan 01, 2007
Posts: 333
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.

praseena nair

Joined: Mar 28, 2009
Posts: 4
hey thanks a lot...i didnt use your way but could still figure out a way to develop the game thanks a lot anyways...
I agree. Here's the link:
subject: images in random fashion