arrays with G4P objects

I made buttons and checkboxes with GUI builder tool. Now, for easier manipulation I want to combine them in arrays. I tried the following: GCheckbox[] cbxs1 = {checkbox1, checkbox2, checkbox3, checkbox4, checkbox5, checkbox6, checkbox7, checkbox8};

Got error:

################ EXCEPTION IN EVENT HANDLER ################ An error occured during execution of the eventhandler: Caused by java.lang.NullPointerException

How would I declare the array properly? Thanks

Tagged:

Answers

Sign In or Register to comment.