Receiving error but cannot debug: ArrayIndexOutOfBoundsException

Ah, okay, when you want it so that the other image is shown only when key hold, okay

Alternatively, use key 0 to toggle between one view and the other - press key shortly, view gets changed permanently. Use a boolean variable viewChangedImage

1 Like