I’m working with this java code and I would like to know how to change a displayed image with an input key. For example, change my currently display from im[0] to im[2]
I’m working with this java code and I would like to know how to change a displayed image with an input key. For example, change my currently display from im[0] to im[2]
You should take a look at how the keyPressed() function works.
here is a reference.