0
How to increment in for loop only when jbutton is pressed?
I am retrieving the objects from arraylist....after retrieving first object..the second object must be retrieved only if button pressed else it should not go further https://code.sololearn.com/cY1cnUCnM486/?ref=app
6 ответов
+ 1
OK, you have jbutton and arraylist
Create smth like eventlistener
Create smth like int counter
When eventlistener will be called => ++counter and retrieve your elements
+ 1
OK, I can help
+ 1
Please, provide full code
+ 1
Where is the Admin class for example?
0
Maria Vasilyova
I did like that already.....it shows a error like something......variables in enclosing........should be declared final.....
0
I did....that was the full code