I'm creating a game in Slick2D. First, let me show you the GUI state where I'm stuck.http://imageshack.us/photo/my-images/593/4v3v.jpg/So, I have a problem in a class SettingsUI, with increasing/decreasingValue methods, whenever I call increase/decrease method, to choose value from an array, what happens when I press increase arrow button, instead of giving me (i+1) value, which is a value {1000, 700} width/height, loop iterates to the last value which is {1400, 900}. Same happens in reversed, when I'm decreasing it goes to the zero element, which is by default {800, 600}. And what I have found out (by printing values), when I click on that arrow button, it prints like 30 times that value from just ONE click. I have tried to add a statement break, when I increase/decrease, inside a loop, but doesn't work. So could you tell me, how can I get this to work properly, what should I add/change?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org