We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
Answers
Actually this works. I had to put it inside function to make it work