This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Who can tell me how the progress of a certain calculation can be shown in a JFrame? I've made a JFrame, complete with a Panel & GridBag layout. Then the program begins a calculation (say, int x runs from 0 to 1,000,000 by means of a x++ loop). On GridBag location [0,0] lives a JLabel that says "x = ". Now I would like to see on location [0,1] my dapper int x grow ever larger until x = 1,000,000. How should I go about that?