Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
updating problem Posted by Pierced1 on 16 Mar 2009 at 7:01 AM
I want to give visual feedback to the user of the program while it's running but i can't get it to work.

When i try for example jLabel.setText("whatever"); it only updates after the whole program has completed (same for textFields).

The program is started from a jLabel that acts like a button inside a JFrame, and the jLabels i want to update are inside the same JFrame(it's an standalone app).

The processor level is at 48% while running so it's not that.
One more thing, if i minimize the program while it's running and i flip it to visual again while it's still running it remains black until the whole code has been executed completely and then turns back to normal viewing.

i would appreciate any help on the matter.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.