Yeah the API is my second Bible. I could read it all day...
I just thought that by reassigning the same reference variable you leave the previously assigned object with a reference of null.
Type: Posts; User: bgroenks96
Yeah the API is my second Bible. I could read it all day...
I just thought that by reassigning the same reference variable you leave the previously assigned object with a reference of null.
You were right. Thanks for your help.
But the problem there is that if the reference for b1 keeps getting changed, it's value is set to the last assignment before the button gets pressed. So if any of the other buttons are pressed, they...
I want the reference variable for a JButton (say... b1) to automatically change with each iteration of a for loop. So:
for(int i=0;i<12;i++) {
JButton b1 = mainButtonList.get(b1);
...