aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How do you having a varying content in a JFrame's status bar? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do you having a varying content in a JFrame Watch "How do you having a varying content in a JFrame New topic
Author

How do you having a varying content in a JFrame's status bar?

SrinivasanRG Gopal
Greenhorn

Joined: Aug 05, 2004
Posts: 5
I have a swing application, in which I have a title bar. In this application, when I do any lengthier operation, lets say, fetch some records based on a complex criteria, I want my status bar to say "Processing Request" and should refresh to "Processing completed." when the page gets painted again.

Right now, though I have 2 messages, I seeing the final message alone, only after the operation gets completed. Till such time, I only see the background of the application itself.
I tried implementing a JTextField to have the status bar text, but the same result. Can you tell me how I can do it?
[ September 30, 2004: Message edited by: SrinivasanRG Gopal ]

-rgs
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
I suspect you will need to do the processing in a new thread, I think that way you should be able to update the GUI while the processing is going on


SCJP 1.4, www.gsi3d.org.uk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you having a varying content in a JFrame's status bar?