I am working on a project where in i have to make enhancements to a swing application.
Each window/frame in the application does a lot of work. Current design is if that window if busy, the entire application freezes and the user has to wait till the control comes back.
I need the freeze to be isolated to that window or some progress bar which is isolated to that window itself..
Is there some kind of api or something in Java Swings which can help me out of this problem.
Thanks
You Want it.. Get it.......the Right Way...<br /> <br />SCJP 5.0 SCWCD 5.0
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
Swing is a single thread.
> Each window/frame in the application does a lot of work.
do the 'lot of work' is a separate thread, leaving the swing thread (EDT) to paint and listen
[edit] do the 'lot of work' IN //<----------------- a separate thread [ March 31, 2008: Message edited by: Michael Dunn ]