January 26th, 2013, 12:36 PM
How to I put picture buttons inside a hexgrid
Hi, I'm new to Java programming and I am still learning the basics. I have been asked to make a hexagon grid for an assignment at school. I managed to create the grid, and the hexagons are aware of their neighbors. Now I am trying to put a picture of a door,arrow, and light bulb inside some of the hexagons but not all of them. When I click on the light bulb I want some of the surrounding hexagons to turn yellow and when I click on the bulb again I want the surrounding hexagons to turn back to white(the default color). The door and arrow functions will not serve any purpose yet so Im not concern with them. So the question is, how do I do all this?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!