¡@

Home 

java Programming Glossary: presentpos

Updating JButton on a timer in a do-while loop

http://stackoverflow.com/questions/10835322/updating-jbutton-on-a-timer-in-a-do-while-loop

final int SIZE 36 private JButton buttons private int presentPos private int desiredPos private Timer timer private Icon infoIcon.. public void actionPerformed ActionEvent ae buttons presentPos .setIcon null if desiredPos presentPos presentPos buttons.. ae buttons presentPos .setIcon null if desiredPos presentPos presentPos buttons presentPos .setIcon infoIcon else if..