aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes SwingWorker 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 "SwingWorker" Watch "SwingWorker" New topic
Author

SwingWorker

Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
Hi All
I am facing a flickering problem in applet when using SwingWorker class from sun i want to do some background processing in event thread SwingUtilities.invokeLater did help me but not that much GUI used to get freeze to prevent that i have used SwingWorker seems to be everything is working fine but some flickering is happening in applet can somebody tell me why is it happening and what is the solution for the same
pls note This problem arise when applet is loaded with huge data
pls help required urgently
Rishi
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You'll need to post some code to show what you are doing... SwingWorker is basically just a way to use threading, that's not important... it's important to see what you are doing with the threading!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
For more clearance
I am sending u a chunk of code that is as follows :
on JTextField focusLost()
{
settting Object attributes which in turn firing a state changed event
}
public void stateChanged()
{
//doing some processing which was taking a long time so i added SwingWorker for the same now gui is not getting freezed but JtextField flickers
}
I hope this is much clear
looking forward to yr help
Rishi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SwingWorker