Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

arrays with G4P objects

$
0
0

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


Viewing all articles
Browse latest Browse all 2896

Trending Articles