Original Post
I am using Jbuttons to create a floor plan so that the user can click on the appropriate room and the program will execute appropriatly. I am currently using individual JButtons which work just fine, but i wish to use an array for the JButtons, my code looks a little like this:
JButton BFloorPlan[] = new JButton[12];
BFloorPlan[0].setIcon(Image01);
BFloorPlan[0].setBounds(0,0,64,64);
pane.add(BFloorPlan[0]);
It compile with 0 errors but when i execute the function the program hangs as though i have written past the end of the array or the image is not available, both not true.
Any help or advise would be much appriciated, thanks