TrainBeaser for iPhone
The moose likes Game Development and the fly likes images in random fashion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Game Development
Reply Bookmark "images in random fashion" Watch "images in random fashion" New topic
Author

images in random fashion

praseena nair
Greenhorn

Joined: Mar 28, 2009
Posts: 4
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

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.

G
praseena nair
Greenhorn

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...
 
IntelliJ Java IDE
 
subject: images in random fashion
 
Threads others viewed
KeyEvents
GUI building
How to make a botton smaller?
Using arrays to randomly generate images? (applet)
random images
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture