Updating a jframe

You see the black block moving from left to right, and then again from left to right, infinitely. ACTUAL - The block moves for about a second, and then not every update is visible anymore. Updating becomes slow, so only each half a second, a button becomes black. It is as if the GUI thread falls asleep after a second, and will only refresh the window each half a second or something like that, instead of continuously.I checked this with JDK 8 64 bit and JDK 32 bit and there was no difference. First button 1 becomes black, then button 1 reverts to red and button 2 becomes black, then button 2 reverts to red and button 3 becomes black, etcetera.

EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Each button color change should be visible as described.

There is no continuously moving black button anymore. ERROR MESSAGES/STACK TRACES THAT OCCUR : No error messages REPRODUCIBILITY : This bug can be reproduced always.

That's because whenever all or part of a graphics component gets uncovered and needs to be refreshed, the component's package cs.graphics; import

3D games are typically played full-screen, or in a window that takes over the mouse and all inputs.

However it is also possible to embed a j ME 3 canvas in a standard Swing application.

561

Leave a Reply