swing - Java JButton Only Doing some calls on double-click -


so have massive project due soon, , whatever reason jbutton's in grid call incmoves() method updates private state of move counter, on other hand, not update grid should until click same button again. incmoves() method called both times, move counter out of whack.

here code button:

class genwindow: http://pastebin.com/sj4wzyx0

class jam: http://pastebin.com/87nqpbyp

here test file: (txt)

6 5 4 0 3 2 3 3 1 3 3 3 0 5 0 2 0 2 1 

let me know if more information needed.

other debugging program breakpoints within actionlistener inner class check whether making in actionperformed method, don't know else attempt fix it. i'm reasonably new swing, , rather confused this, considering no errors or noticeable changes happen, besides colors not switching.

the car buttons should shifting depending on large if statements in actionperformed method, , updating grid addgrid function. move counter incremented, although buttons don't shift unless clicked again.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -