1 posts in topic
Flat View  Flat View

Posted By:   Peter_Chase
Posted On:   Friday, June 21, 2002 08:12 AM

I am writing a small swing application that uses a menu to run the different sections of the program. These sections are supposed to give feedback to the user in a JScrollPane throughout the entire process. The problem is when I choose my menu option the menu stays open while the process runs and I get no feedback until it is completely done running the process.

So now my question, how do I get the menu to close before the process starts so that I can get constant feedback from my process to the JScrollPane?


Re: Menus

Posted By:   Lunkwill_Vroomfondel  
Posted On:   Friday, June 21, 2002 09:11 AM

you would have to move your time-cosuming tasks out of the event-thread.

this means, you should only start a thread from the menu-clicked/selected event-handler.

more help for more info.
About | Sitemap | Contact